PECOS-packages / PECOS

A Python framework, library, and set of tools for exploring, developing, and evaluating quantum error-correction protocols.
Other
29 stars 6 forks source link

Allow passing ancillas to `Steane` class #71

Closed perlinm closed 2 months ago

perlinm commented 2 months ago

This should allow different logical qubits to share ancillas, with something like

program = pecos.slr.Main(
    logical_qubit_0 := pecos.qeclib.steane.steane_class.Steane("lq_0"),
    logical_qubit_1 := pecos.qeclib.steane.steane_class.Steane("lq_1", ancillas=logical_qubit_0.a),
    ...
)

Warning: I am not sure how to test for unintended side effects, so I'm not sure whether this breaks anything...

perlinm commented 2 months ago

Oops, meant to open a PR into the feat-qeclib-steane branch. Closing.