Optimize and simulate measurement-based quantum computation
Reason this release was yanked:
bug in build configurations.
Project description
Graphix is a measurement-based quantum computing (MBQC) software package, featuring
- the measurement calculus framework with integrated graphical rewrite rules for Pauli measurement preprocessing
- circuit-to-pattern transpiler, graph-based deterministic pattern generator and manual pattern generation
- flow- and gflow-based graph visualization tools
- statevector, density matrix and tensornetwork pattern simulation backends
- QPU interface and fusion network extraction tool
Installation
Install graphix
with pip
:
$ pip install graphix
Install together with device interface:
$ pip install graphix[extra]
this will install graphix
and inteface for IBMQ and Perceval to run MBQC patterns on superconducting and optical QPUs and their simulators.
Using graphix
generating pattern from a circuit
from graphix import Circuit
circuit = Circuit(4)
circuit.h(0)
...
pattern = circuit.transpile()
pattern.draw_graph()
note: this graph is generated from QAOA circuit, see our example code. Arrows indicate the causal flow of MBQC and dashed lines are the other edges of the graph. the vertical dashed partitions and the labels 'l:n' below indicate the execution layers or the order in the graph (measurements should happen from left to right, and nodes in the same layer can be measured simultaneously), based on the partial order associated with the (maximally-delayed) flow.
preprocessing Pauli measurements
pattern.perform_pauli_measurements()
pattern.draw_graph()
(here, the graph has generalized flow.)
simulating the pattern
state_out = pattern.simulate_pattern(backend='statevector')
and more..
-
See demos showing other features of
graphix
. -
Read the tutorial for more usage guides.
-
For theoretical background, read our quick introduction into MBQC and LC-MBQC.
-
Full API docs is here.
Citing
Shinichi Sunami and Masato Fukushima, Graphix. (2023) https://doi.org/10.5281/zenodo.7861382
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.
Special thanks to Fixstars Amplify:
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file graphix-0.2.12.tar.gz
.
File metadata
- Download URL: graphix-0.2.12.tar.gz
- Upload date:
- Size: 137.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c769520aaf0b3d32a16d732aee47c237fb16f0ffe6f921aac376d0560ef2597 |
|
MD5 | 5f4076f8f21dba6105d944a621a7648c |
|
BLAKE2b-256 | 56504faf2e9359776b1363da00e6aa4a7a78f429d7bb041a1bd180f8a59f96cd |
File details
Details for the file graphix-0.2.12-py3-none-any.whl
.
File metadata
- Download URL: graphix-0.2.12-py3-none-any.whl
- Upload date:
- Size: 96.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 342cd8d1a3389abe4e0f954677049d9286ed6dcf12249b0726bfefaa2559ff16 |
|
MD5 | 5295b899199748c5045e80a68a8bce2e |
|
BLAKE2b-256 | 2bf04e3a71be60b04fa3e246841db536151b6696a037831894903049fb914722 |