logicalΒΆ
Guppy functions for the logical operations and types for the Steane 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 implementation for these ops is provided in
primitives.
Classes
A measurement outcome of a logical Steane qubit. |
|
|
A logical qubit encoded in the Steane code. |
Functions
|
CX gate. |
|
CZ gate. |
|
Free a qubit. |
|
H gate. |
|
Apply a logical \(T\) gate by consuming a magic-state qubit. |
|
Apply a logical \(T^\dagger\) gate by consuming a magic-state qubit. |
|
Destructive measurement of the qubit in the Z basis. |
Prepare a logical \(T\ket{+}\) magic state for \(T\) and \(T^\dagger\) injection. |
|
|
Perform a QEC cycle on the logical qubit. |
|
S gate. |
|
Sdg gate. |
|
SWAP gate. |
|
Apply a logical \(T\) gate using magic-state injection. |
|
Apply a logical \(T^\dagger\) gate using magic-state injection. |
|
X gate. |
|
Y gate. |
|
Z gate. |