logical¶
Guppy functions for the logical operations and types for the ToyK2 QEC architecture.
This module contains bindings for the fundamental ops in the HUGR extensions, as well as composite operations that comprise multiple logical operations.
The physical implementations for these ops are provided in
primitives.
Classes
|
A ToyK2 logical block. |
Measurement of both qubits in a logical block. |
|
Measurement of a logical qubit. |
Functions
|
Logical CX between two blocks, targeting the specified logical qubits. |
|
Logical CX within the block, targeting the specified logical qubit. |
|
Transversal logical CX, namely, two parallel CX gates between the blocks. |
|
Free a block. |
|
Logical Hadamard gate on the specified logical qubit. |
|
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 \(|0+\rangle\) state. |
|
|
Project the chosen logical qubit onto the Z basis without consuming it. |
|
Performs an error detection cycle on the block. |
|
Logical S gate on the specified logical qubit. |
|
Logical S or Sdg gate on both logical qubits. |
|
Logical Sdg gate on the specified logical qubit. |
|
Logical SWAP within the block, swapping the two logical qubits. |
|
Logical T gate on the specified logical qubit. |
|
Logical T or Tdg gate on both logical qubits. |
|
Logical Tdg gate on the specified logical qubit. |
|
Logical X gate to the chosen logical qubit. |
|
Logical Z gate to the chosen logical qubit. |