mentpy
mentpy copied to clipboard
Add `witnesses_for` method on `MBQCircuit`
When considering Pauli Flow and other problems, knowing what qubits later in time have the responsibility of correcting errors on qubits earlier in time is useful.
A collection of witness
methods
-
MBQCircuit.witnesses(v=None)
- Returns some representation (set of Ments? Dict of Ments?) of all the witnesses of
v
. If v=None return the entire dictionary.
- Returns some representation (set of Ments? Dict of Ments?) of all the witnesses of
-
MBQCircuit.witness(t, s)
- Return True if
t
is a witness ofs
else False
- Return True if
-
MBQCircuit.correct(v)
- Correct the value of
v
and return some useful result
- Correct the value of
-
MBQCircuit.witness_matrix(d=None)
.- Matrix representation of the current switch state of a circuit at evaluation depth d? If d=None, then return the witness state of the circuit after completely evaluated.
@BestQuark thoughts on these methods and their feasibility/usefulness?