primitives¶
Logical primitives for a CSS [[4,2,2]] code.
Functions
|
Logical CX within the block, targeting the specified logical qubit. |
|
Transversal logical CX, namely, two parallel CX gates between the blocks. |
|
Logical Hadamard gate on both logical qubits. |
|
Measure both qubits of the block in the Z basis. |
Non fault-tolerant preparation of a logical \(T|+\rangle T|+\rangle\) state. |
|
Non fault-tolerant preparation of a logical \(|Y\rangle|Y\rangle\) state. |
|
Fault-tolerant preparation of a logical \(|00\\rangle\) state. |
|
Fault-tolerant preparation of a logical \(|00\\rangle\) state. |
|
Fault-tolerant preparation of a logical \(|0+\rangle\) state. |
|
|
Project the chosen qubit onto the Z basis without consuming it. |
|
Performs an error detection cycle on the block. |
|
Logical SWAP within the block, swapping the two logical qubits. |
|
Logical X gate on the chosen logical qubit. |
|
Logical Z gate on the chosen logical qubit. |