Pauli Frame¶
graphqomb.pauli_frame module¶
Pauli frame for Measurement-based Quantum Computing.
This module provides:
PauliFrame: A class to track the Pauli frame of a quantum computation.
Pauli Frame Class¶
- class graphqomb.pauli_frame.PauliFrame[source]¶
Pauli frame tracker.
- graphstate¶
Set of nodes in the resource graph
- Type:
- x_flip(node)[source]¶
Flip the X Pauli mask for the given node.
- Parameters:
node (
int) – The node to flip.
- z_flip(node)[source]¶
Flip the Z Pauli mask for the given node.
- Parameters:
node (
int) – The node to flip.
- meas_flip(node)[source]¶
Update the Pauli frame for a measurement flip based on the given correction flows.
- Parameters:
node (
int) – The node to flip.
- logical_observables_group(target_nodes)[source]¶
Get the logical observables group for the given target nodes.
- Parameters:
target_nodes (
collections.abc.Collection[int]) – The target nodes to get the logical observables group for.- Returns:
The logical observables group for the given target nodes.
- Return type: