SteaneOpsExtension¶
- class guppyft.extensions.steane.SteaneOpsExtension[source]¶
Extension providing the Steane logical operations.
- property cx_def: OpDef¶
Apply a CX gate to two qubits.
This is the generic operation definition. For the instantiated operation, see cx.
- property cz_def: OpDef¶
Apply a CZ gate to two qubits.
This is the generic operation definition. For the instantiated operation, see cz.
- property decode_def: OpDef¶
Decode a measurement of a Steane logical qubit.
This is the generic operation definition. For the instantiated operation, see decode.
- property free_def: OpDef¶
Free a logical qubit.
This is the generic operation definition. For the instantiated operation, see free.
- property h_def: OpDef¶
Apply an H gate to one qubit.
This is the generic operation definition. For the instantiated operation, see h.
- property inject_t_def: OpDef¶
Perform a T gate by injecting a magic state.
This is the generic operation definition. For the instantiated operation, see inject_t.
- property inject_tdg_def: OpDef¶
Perform a Tdg gate by injecting a magic state.
This is the generic operation definition. For the instantiated operation, see inject_tdg.
- property measure_z_def: OpDef¶
Destructive measurement of a logical qubit in the Z basis.
This is the generic operation definition. For the instantiated operation, see measure_z.
- prep_t_state() ExtOp[source]¶
Prepare a magic state that can be used to produce T-like states (T and Tdg).
- property prep_t_state_def: OpDef¶
Prepare a magic state that can be used to produce T-like states (T and Tdg).
This is the generic operation definition. For the instantiated operation, see prep_t_state.
- property prep_zero_def: OpDef¶
Prepare a logical qubit in the all-zero state.
This is the generic operation definition. For the instantiated operation, see prep_zero.
- property qec_cycle_def: OpDef¶
Perform a QEC cycle on a logical qubit.
This is the generic operation definition. For the instantiated operation, see qec_cycle.
- property s_def: OpDef¶
Apply an S gate to one qubit.
This is the generic operation definition. For the instantiated operation, see s.
- property sdg_def: OpDef¶
Apply an Sdg gate to one qubit.
This is the generic operation definition. For the instantiated operation, see sdg.
- property swap_def: OpDef¶
Apply a SWAP gate to two qubits.
This is the generic operation definition. For the instantiated operation, see swap.
- property x_def: OpDef¶
Apply an X gate to one qubit.
This is the generic operation definition. For the instantiated operation, see x.