graphix
graphix copied to clipboard
measurement-based quantum computing (MBQC) compiler and simulator
**Description of the change:** Refactoring of the backend to enable delegated measurement-based QC protocols. 1. Decouple backends from patterns, to allow backend instantiation independent of any pattern 2. Better code...
Before submitting, please check the following: - Make sure you have tests for the new code and that test passes (run `tox`) - If applicable, add a line to the...
**Context:** Many researchers in MBQC use a graphical approach to reasoning about patterns. These center around the concept of a open graph which can be thought of as a graphical...
This PR proposes more direct implementations for `standardize` and `shift_signals`. Here are some benchmarks, with random circuits: |method|global|local|direct| |-|-|-|-| |standardize|5.51|0.24 (×23.05)|0.04 (×5.33)| |shift_signals|3.37|0.40 (×8.52)|0.11 (×3.61)| |standardize_and_shift_signals|9.01|0.44 (×20.56)|0.20 (×2.24)|
This commit introduces a new named tuple, `graphix.pauli.Measure`, which contains a pair `(axis, sign)`. It includes a static method, `try_from`, that returns an instance of `Measure` if the given plane...
Resolves #171 .
Currently we only test converting Open graphs to (`OpenGraph.to_pattern()`) and from (`OpenGraph.from_pattern()`) patterns with a couple of handcrafted examples in `tests/test_opengraph.py`. It would instead be more robust to test these...
This commit is yet another tentative to implement parameterized measurement patterns, to fulfill issue #45 (previous tentative: #68). This commit adds two methods to the class `Pattern`: - `is_parameterized()` returns...
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Graphix does not guarantee the runnability and deterministic properties of...
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Currently, each simulator backend depends on the pattern class, but...