graphix
graphix copied to clipboard
measurement-based quantum computing (MBQC) compiler and simulator
**Is your feature request related to a problem? Please describe.** Pauli preprocessing is currently only available when inputs are initialized in |+> state. **Describe the feature you'd like** Pauli preprocessing...
**Describe the feature you'd like** Refactor & optimize `gflow.py`. We may need to resort to C++ or Rust bindings if `numba` doesn't work.
**Is your feature request related to a problem? Please describe.** Problem: The documentation for the graphix package currently lacks detailed information and examples for performing measurement-based quantum machine learning (MB-QML)...
**Description of the change:** - Check `pyzx.py` and `test_pyzx.py` by `mypy` / `pyright` - Fix type warnings
**Description of the change:** - Temporary remove unmaintained benchmarks - Remove `autoray` - Update requirements
Functions named `get_` / `set_` should be renamed due to following observations: 1. If it is not getter/setter (ex. has extra arguments) We should not use `get_` / `set_` as...
**Description of the change:** - Use coherent import style - Add coverage ignore patterns - Prohibit relative import - Resolve deeply-nested `import` that will lead to `mypy` warning
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...
The following code raises `KeyError` in `rxgraphviews.get_node_index` when `use_rustworkx` is `True`: ```python @pytest.mark.parametrize("use_rustworkx", [False, True]) def test_pauli_non_contiguous(self, use_rustworkx) -> None: pattern = Pattern(input_nodes=[0]) pattern.extend([ N(node=2, state=PlanarState(plane=Plane.XY, angle=0.0)), E(nodes=(0, 2)), M(node=0,...
The following test succeeds with `networkx` back-end but fails with `rustworkx` back-end. Edge keys in the table `num_to_data` are directed. ```python @pytest.mark.parametrize("use_rustworkx", [False, True]) def test_remove_edge(use_rustworkx: bool) -> None: g...