Giter Site home page Giter Site logo

qmps.jl's Introduction

QMPS

Build Status Build Status Coverage

A quick realization of qubit-efficient quantum circuit architecture of Matrix Product States (QMPS). This package is an extension package for a quantum simulation framework called Yao.

Supported types of MPS

  • Cluster state
  • Differentiable circuit constructed state (Support quantum differentiations)

Main functions

For constructing QMPS circuits

  • MPSC: Generate the structure of elements related to a QMPS circuit.

  • MPSpar: Construct parameters that MPSC needs.

  • MPSbuilder: Function for creating different types of MPS circuits.

For differentiable quantum circuits

  • DCbuilder: Generate the structure of elements may needed for a Quantum differentiable circuit.

  • MPSDCpar: Get the circuit parameters of a differentiable QMPS circuit (QMPS-DC) or of a QMPS-DC extended circuit.

  • markDiff: Return the differentiable gate(s) QMPS.QDiff{GT, N} from a block or a block tree such as ChainBlock.

  • getQdiff: Quantum differentiation.

  • getNdiff: Numerical differentiation.

NOTE: For more introductions and tutorials about the above functions please check the examples directory in the repository as well as the function documentation using Julia's Help mode.

Fields of struct MPSC

Fields Meanings
circuit QMPS circuit.
mpsBlocks Array of all the MPS blocks in the QMPS circuit.
cExtend The circuit QMPS circuit is extended back to that doesn't reuse any qubit.
cEBlocks Array of all the MPS blocks in the Extended circuit.
dGates Differentiable gates of the QMPS circuit if applicable.
nBit Number of lines (bits) of the QMPS circuit.
nBlock Number of blocks in the QMPS circuit.

Setup Guide

Environment

Installation

Please type ] in Julia REPL to enter Pkg mode, then type:

pkg> add https://github.com/frankwswang/QMPS.jl

Reference

*Mitarai, K., Negoro, M., Kitagawa, M., & Fujii, K. (2018). Quantum circuit learning. Physical Review A, 98(3), 032309. (DOI: 10.1103/PhysRevA.98.032309)

*Liu, J. G., Zhang, Y. H., Wan, Y., & Wang, L. (2019). Variational quantum eigensolver with fewer qubits. Physical Review Research, 1(2), 023025. (DOI: 10.1103/PhysRevResearch.1.023025)

License

QMPS is released under Apache License 2.0.

qmps.jl's People

Contributors

frankwswang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.