ToyK2OpsExtension¶
- class guppyft.extensions.toy_k2.ToyK2OpsExtension[source]¶
Extension providing the ToyK2 logical operations.
- property alloc_dynq_def: OpDef¶
Allocate a dynamic ToyK2 logical qubit.
This is the generic operation definition. For the instantiated operation, see alloc_dynq.
- property borrow_def: OpDef¶
Extract a dynamic ToyK2 logical qubit from a block.
This is the generic operation definition. For the instantiated operation, see borrow.
- property borrow_more_def: OpDef¶
Extract a dynamic ToyK2 logical qubit from a borrowed block.
This is the generic operation definition. For the instantiated operation, see borrow_more.
- property cx_dynq_def: OpDef¶
Apply a CX gate to a dynamic ToyK2 logical qubit.
This is the generic operation definition. For the instantiated operation, see cx_dynq.
- property cx_intra_def: OpDef¶
Logical CX within the block, targeting the specified logical qubit.
This is the generic operation definition. For the instantiated operation, see cx_intra.
- cx_transversal() ExtOp[source]¶
Transversal logical CX, namely, two parallel CX gates between the blocks.
- property cx_transversal_def: OpDef¶
Transversal logical CX, namely, two parallel CX gates between the blocks.
This is the generic operation definition. For the instantiated operation, see cx_transversal.
- property decode_block_measurement_def: OpDef¶
Decode a measurement of a ToyK2 logical block.
This is the generic operation definition. For the instantiated operation, see decode_block_measurement.
- property decode_qubit_measurement_def: OpDef¶
Decode a measurement of a ToyK2 logical qubit.
This is the generic operation definition. For the instantiated operation, see decode_qubit_measurement.
- property free_def: OpDef¶
Free a logical block.
This is the generic operation definition. For the instantiated operation, see free.
- property free_dynq_def: OpDef¶
Free a dynamic ToyK2 logical qubit.
This is the generic operation definition. For the instantiated operation, see free_dynq.
- property h_all_def: OpDef¶
Logical Hadamard gate on both logical qubits.
This is the generic operation definition. For the instantiated operation, see h_all.
- property h_dynq_def: OpDef¶
Apply an H gate to a dynamic ToyK2 logical qubit.
This is the generic operation definition. For the instantiated operation, see h_dynq.
- property measure_z_all_def: OpDef¶
Measure both qubits of the block in the Z basis.
This is the generic operation definition. For the instantiated operation, see measure_z_all.
- property measure_z_dynq_def: OpDef¶
Destructively measure a dynamic ToyK2 logical qubit in the Z basis.
This is the generic operation definition. For the instantiated operation, see measure_z_dynq.
- prep_t_states_non_ft() ExtOp[source]¶
Non fault-tolerant preparation of a logical \(T|+\rangle T|+\rangle\) state.
- property prep_t_states_non_ft_def: OpDef¶
Non fault-tolerant preparation of a logical \(T|+\rangle T|+\rangle\) state.
This is the generic operation definition. For the instantiated operation, see prep_t_states_non_ft.
- prep_y_states_non_ft() ExtOp[source]¶
Non fault-tolerant preparation of a logical \(|Y\rangle|Y\rangle\) state.
- property prep_y_states_non_ft_def: OpDef¶
Non fault-tolerant preparation of a logical \(|Y\rangle|Y\rangle\) state.
This is the generic operation definition. For the instantiated operation, see prep_y_states_non_ft.
- property prep_zero_ft_def: OpDef¶
Fault-tolerant preparation of a logical \(|00\\rangle\) state.
This is the generic operation definition. For the instantiated operation, see prep_zero_ft.
- property prep_zero_plus_ft_def: OpDef¶
Fault-tolerant preparation of a logical \(|0+\rangle\) state.
This is the generic operation definition. For the instantiated operation, see prep_zero_plus_ft.
- property project_z_def: OpDef¶
Measure the chosen qubit in the Z basis.
This is the generic operation definition. For the instantiated operation, see project_z.
- property project_z_dynq_def: OpDef¶
Apply a Z-basis measurement on a dynamic ToyK2 logical qubit.
This is the generic operation definition. For the instantiated operation, see project_z_dynq.
- property qed_cycle_def: OpDef¶
Performs an error detection cycle on the block.
This is the generic operation definition. For the instantiated operation, see qed_cycle.
- property restore_def: OpDef¶
Restore a dynamic ToyK2 logical qubit to their original block.
This is the generic operation definition. For the instantiated operation, see restore.
- property restore_some_def: OpDef¶
Restore a dynamic ToyK2 logical qubit to their original block.
This is the generic operation definition. For the instantiated operation, see restore_some.
- property s_dynq_def: OpDef¶
Apply an S gate to a dynamic ToyK2 logical qubit.
This is the generic operation definition. For the instantiated operation, see s_dynq.
- property sdg_dynq_def: OpDef¶
Apply an Sdg gate to a dynamic ToyK2 logical qubit.
This is the generic operation definition. For the instantiated operation, see sdg_dynq.
- property swap_intra_def: OpDef¶
Logical SWAP within the block, swapping the two logical qubits.
This is the generic operation definition. For the instantiated operation, see swap_intra.
- property t_dynq_def: OpDef¶
Apply an T gate to a dynamic ToyK2 logical qubit.
This is the generic operation definition. For the instantiated operation, see t_dynq.
- property tdg_dynq_def: OpDef¶
Apply an Tdg gate to a dynamic ToyK2 logical qubit.
This is the generic operation definition. For the instantiated operation, see tdg_dynq.
- property x_def: OpDef¶
Logical X gate on the chosen logical qubit.
This is the generic operation definition. For the instantiated operation, see x.
- property x_dynq_def: OpDef¶
Apply an X gate to a dynamic ToyK2 logical qubit.
This is the generic operation definition. For the instantiated operation, see x_dynq.