CCZ2TFactory#

qualtran.surface_code.CCZ2TFactory

Magic state factory costs using the model from catalyzed CCZ to 2T paper.

Inherits From: MagicStateFactory

distillation_l1_d

Code distance used for level 1 factories.

distillation_l2_d

Code distance used for level 2 factories.

distillation_l1_d

 

distillation_l2_d

 

Methods#

l0_state_injection_error

View source

Error rate associated with the level-0 creation of a |T> state.

By using the techniques of Ying Li (https://arxiv.org/abs/1410.7808), this can be done with approximately the same error rate as the underlying physical error rate.

l0_topo_error_t_gate

View source

Topological error associated with level-0 distillation.

For a level-1 code distance of d1, this construction uses a d1/2 distance code for storing level-0 T states.

l0_error

View source

Chance of failure of a T gate performed with an injected (level-0) T state.

As a simplifying approximation here (and elsewhere) we assume different sources of error are independent, and we merely add the probabilities.

l1_topo_error_factory

View source

Topological error associated with a L1 T factory.

l1_topo_error_t_gate

View source

l1_distillation_error

View source

The error due to level-0 faulty T states making it through distillation undetected.

The level 1 distillation procedure detects any two errors. There are 35 weight-three errors that can make it through undetected.

l1_error

View source

Chance of failure of a T gate performed with a T state produced from the L1 factory.

l2_error

View source

Chance of failure of the level two factory.

This is the chance of failure of a CCZ gate or a pair of T gates performed with a CCZ state.

n_physical_qubits

View source

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

factory_error

View source

Error resulting from the magic state distillation part of the computation.

n_cycles

View source

The number of error-correction cycles to distill enough magic states.

__ne__

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

__eq__

Method generated by attrs for class CCZ2TFactory.