GSJ24CCXFactory Class

Implements the 8|T⟩ → >>|<<CCX⟩ magic state factory described in Fig. 24 of Gidney, Shutty, and Jones (2024). This design converts eight T magic states into a single CCX (Toffoli) state using lattice surgery operations on 12 logical qubits (including helper qubits) with a circuit depth of 6.

The output CCX error rate has two contributions:

  • Distillation error: 28 · p_T², where p_T is the T state error rate (from pairs of T states failing simultaneously).

  • Logical error: accumulated over 6 lattice surgery rounds on 12 qubits.

The factory production time includes an overhead factor of (1 + 8·p_T) to account for the failure probability when consuming the T states.

Reference:

  • C. Gidney, C. Shutty, C. Jones, "Magic state cultivation: growing T states with 78% reduced overhead", arXiv:2409.17595 (2024). https://arxiv.org/abs/2409.17595

  • C. Gidney, A. G. Fowler, "Efficient magic state factories with a catalyzed >>|<<CCZ⟩ to 2|T⟩ transformation", Quantum 3, 135 (2019). arXiv:1812.01238. https://arxiv.org/abs/1812.01238

Constructor

GSJ24CCXFactory()

Methods

provided_isa
required_isa

provided_isa

provided_isa(impl_isa: ISA, ctx: ISAContext) -> Generator[ISA, None, None]

Parameters

Name Description
impl_isa
Required
ctx
Required

required_isa

static required_isa() -> ISARequirements