6. Code operations
In the context of quantum error correction (QEC), code operations refer to the set of fundamental operations that can be performed on blocks. In the stabilizer formalism, all code blocks typically support a common set of operations which are defined in operations. The implementations of these operations for general cases are provided in applicator module.
The standard code operations supported by default are:
MeasureBlockSyndromes:Measure all the syndromes of a code block into ancilla qubits.
MeasureLogicalX:Measure the logical X operator of a code block into an ancilla qubit.
MeasureLogicalZ:Measure the logical Z operator of a code block into an ancilla qubit.
MeasureLogicalY:Measure the logical Y operator of a code block into an ancilla qubit.
LogicalX(resp. Y or Z) :Apply the logical X (Y or Z) operator on a code block.
ResetAllDataQubits:Reset all data qubits in a code block to the given state (|0⟩ by default).
ResetAllAncillaQubits:Reset all ancilla qubits in a code block to the given state (|0⟩ by default).
StateInjection:Inject a given resource state into a code block.
ConditionalLogicalX(resp. Y or Z) :apply a logical X (Y or Z) operator on a code block conditioned on the state of a classical register.