Skip to content

bloqade.gemini.decoding.experiments.magic_state_dist_steane

← Module overview

functionmagic_state_dist_steanesource

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

NameTypeDefaultDescription
theta_offsetfloat0.0An optional offset to theta to manually introduce rotation error in the nonclifford prefix. Defaults to 0.0.
phi_offsetfloat0.0An optional offset to phi to manually introduce rotation error in the nonclifford prefix. Defaults to 0.0.
lam_offsetfloat0.0

Returns

tuple[ir.Method[..., None], ir.Method[..., None]]The (nonclifford_prefix, logical_circuit) pair.

source