Skip to main content

Optimize and simulate measurement-based quantum computation

Project description

logo

PyPI - Python Version PyPI Unitary Fund DOI Documentation Status GitHub Downloads

Graphix is a measurement-based quantum computing (MBQC) compiler to generate, optimize and simulate MBQC measurement patterns.

Feature

  • We integrate an efficient graph state simulator as an optimization routine of MBQC measurement pattern, with which we can classically preprocess all Pauli measurements (corresponding to the elimination of all Clifford gates in the gate network - c.f. Gottesman-Knill theorem and more general pattern rewriting method based on ZX diagram rewriting), reducing the required size of graph state to run the computation.
  • We implement tensor-network simulation backend for MBQC with which thousands of qubits (graph nodes) can be simulated with modest computing resources (e.g. laptop), without approximation.
  • We are developing density matrix simulation backend for noisy MBQC simulations with customizable noise models.

Installation

Install graphix with pip:

$ pip install graphix

Install together with device interface:

$ pip install graphix[extra]

this will install graphix and IBMQ interface to run MBQC patterns on IBM devices and Aer simulator.

We are currently adding more quantum device interfaces. Please suggest in issues if you have any particular device in mind!

Next Steps

  • We have a few demos showing basic usages of Graphix.

  • You can run demos on your browser:

    • Preprocessing Clifford gates: Binder
    • Using tensor-network simulator backend: Binder
    • QAOA circuit: Binder
  • Read the tutorial for more comprehensive guide.

  • For theoretical background, read our quick introduction into MBQC and LC-MBQC.

Citing

Shinichi Sunami and Masato Fukushima, Graphix. (2023) https://doi.org/10.5281/zenodo.7861382

Update on the arXiv paper: [^1]

[^1]: Following the release of this arXiv preprint, we were made aware of Backens et al. and related work, where graph-theoretic simplification (Pauli measurement elimination) of patterns were shown. Many thanks for letting us know about this work - at the time of the writing we were not aware of these important relevant works but will certainly properly mention in the new version; we are working on significant restructuring and rewriting of the paper and hope to update the paper this autumn.

Contributing

We use GitHub issues for tracking feature requests and bugs reports.

Discord Server

Please visit Unitary Fund's Discord server, where you can find a channel for graphix to ask questions.

Core Contributors

Dr. Shinichi Sunami (University of Oxford)

Masato Fukushima (University of Tokyo, Fixstars Amplify)

Acknowledgements

We are proud to be supported by unitary fund microgrant program.

unitary-fund

Special thanks to Fixstars Amplify:

amplify

License

Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphix-0.2.6.tar.gz (56.7 kB view details)

Uploaded Source

Built Distribution

graphix-0.2.6-py3-none-any.whl (62.1 kB view details)

Uploaded Python 3

File details

Details for the file graphix-0.2.6.tar.gz.

File metadata

  • Download URL: graphix-0.2.6.tar.gz
  • Upload date:
  • Size: 56.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for graphix-0.2.6.tar.gz
Algorithm Hash digest
SHA256 bd7bd799583093da0b85962d73289ff5277ac70807870978c2f6de08b64d7384
MD5 18260538c54b3cd74480256627782a94
BLAKE2b-256 3fc30473c3d5ff1d95ca870614a04a0bec0c8675763f14c1fe937a8ac32209d9

See more details on using hashes here.

File details

Details for the file graphix-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: graphix-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 62.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for graphix-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3af3512297f0d4ebf908253f7b96b437d8fc02c6f1acd28be3689c3ca7ac0aba
MD5 de4a5be1dc66249f9b4f82783d53f38f
BLAKE2b-256 64ea2c35edb028d7be2df8e039efacf4ed90a1aaf0619dcf033652ff0f7979e3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page