bloqade.gemini.decoding.experiments.magic_state_dist_steane
← Module overview
function
source
functionmagic_state_dist_steane¶source
bloqade.gemini.decoding.experiments.magic_state_dist_steane
Signature
def magic_state_dist_steane(*, theta_offset: float = 0.0, phi_offset: float = 0.0, lam_offset: float = 0.0) -> tuple[ir.Method[..., None], ir.Method[..., None]]Returns the nonclifford prefix circuit and clifford logical circuit used for magic state distillation. Note that the kernels take in the qubit register ‘reg’ as input. This means that the kernels are technically agnostic to the number of input qubits.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
theta_offset | float | 0.0 | An optional offset to theta to manually introduce rotation error in the nonclifford prefix. Defaults to 0.0. |
phi_offset | float | 0.0 | An optional offset to phi to manually introduce rotation error in the nonclifford prefix. Defaults to 0.0. |
lam_offset | float | 0.0 |
Returns
tuple[ir.Method[..., None], ir.Method[..., None]]The (nonclifford_prefix, logical_circuit) pair.