logicalΒΆ
Guppy types and logical operations for the C4-Helix QEC architecture.
A Block contains two logical qubits, indexed 0 and 1. All code operations act on blocks. TState is an opaque, consumable magic resource.
Classes
|
A block of two logical qubits, prepared as |
|
A consumable T-state resource with backend-selected encoding. |
Functions
|
CX from logical qubit 0 to 1. |
|
Targeted CX from the first block to the second. |
|
Apply CX from each logical qubit in the first block to the corresponding logical qubit in the second block. |
|
Logical CZ. |
|
Discard a block. |
|
Discard an unused T-state resource. |
|
Hadamard on each logical qubit. |
|
Consume a T-state resource and apply T to the logical qubit selected by a runtime index. |
|
Consume a T-state resource and apply Tdg to the logical qubit selected by a runtime index. |
|
Destructively measure both logical qubits in the X basis. |
|
Destructively measure both logical qubits in the Z basis. |
Prepare the |
|
Create a resource that can be consumed to generate a T or Tdg operation on a logical qubit. |
|
Prepare the all-zero state on a block. |
|
|
Perform syndrome extraction and recovery (or a Pauli-frame update). |
|
Logical S on both qubits. |
|
Swap the two qubits in the block. |
|
Apply T by preparing and consuming a magic resource. |
|
Apply Tdg by preparing and consuming a magic resource. |
|
Apply X to the logical qubit selected by a runtime index. |
|
Apply Y to the logical qubit selected by a runtime index. |
|
Apply Z to the logical qubit selected by a runtime index. |