CCZ2TFactory#
qualtran.surface_code.CCZ2TFactory
View source on GitHub
|
Magic state factory costs using the model from catalyzed CCZ to 2T paper.
Inherits From: MagicStateFactory
qualtran.surface_code.CCZ2TFactory(
distillation_l1_d=attr_dict['distillation_l1_d'].default,
distillation_l2_d=attr_dict['distillation_l2_d'].default
)
Args
distillation_l1_dCode distance used for level 1 factories.
distillation_l2_dCode distance used for level 2 factories.
References
Attributes
Methods#
l0_state_injection_error
l0_state_injection_error(
error_model: 'LogicalErrorModel'
) -> float
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
l0_topo_error_t_gate(
error_model: 'LogicalErrorModel'
) -> float
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
l0_error(
error_model: 'LogicalErrorModel'
) -> float
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
l1_topo_error_factory(
error_model: 'LogicalErrorModel'
) -> float
Topological error associated with a L1 T factory.
l1_topo_error_t_gate
l1_topo_error_t_gate(
error_model: 'LogicalErrorModel'
) -> float
l1_distillation_error
l1_distillation_error(
error_model: 'LogicalErrorModel'
) -> float
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
l1_error(
error_model: 'LogicalErrorModel'
) -> float
Chance of failure of a T gate performed with a T state produced from the L1 factory.
l2_error
l2_error(
error_model: 'LogicalErrorModel'
) -> float
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
n_physical_qubits() -> int
The number of physical qubits used by the magic state factory.
factory_error
factory_error(
n_logical_gates: 'GateCounts', logical_error_model: 'LogicalErrorModel'
) -> float
Error resulting from the magic state distillation part of the computation.
n_cycles
n_cycles(
n_logical_gates: 'GateCounts', logical_error_model: 'LogicalErrorModel'
) -> int
The number of error-correction cycles to distill enough magic states.
__ne__
__ne__(
other
)
Check equality and either forward a NotImplemented or return the result negated.
__eq__
__eq__(
other
)
Method generated by attrs for class CCZ2TFactory.
View source on GitHub