FifteenToOne#

qualtran.surface_code.FifteenToOne

15-to-1 Magic T state factory.

Inherits From: MagicStateFactory

reference: Magic State Distillation: Not as Costly as You Think.

d_X

Side length of the surface code along which X measurements happen.

d_Z

Side length of the surface code along which Z measurements happen.

d_m

Number of code cycles used in lattice surgery.

qec

Quantum error correction scheme being used.

Methods#

n_physical_qubits

View source

The number of physical qubits used by the magic state factory.

p_fail

View source

p_out

View source

n_cycles

View source

The number of cycles (time) required to produce the requested number of magic states.

Unlike the same method for other factories. This method reports the expected number of cycles until producing the needed magic states while taking into account possible failures.

reference: page 11 of https://arxiv.org/abs/1905.06903

factory_error

View source

The total error expected from distilling magic states with a given physical error rate.

__ne__

Check equality and either forward a NotImplemented or return the result negated.

__eq__

Method generated by attrs for class FifteenToOne.