FifteenToOne#
qualtran.surface_code.FifteenToOne
View source on GitHub
|
15-to-1 Magic T state factory.
Inherits From: MagicStateFactory
qualtran.surface_code.FifteenToOne(
d_X, d_Z, d_m
)
reference: Magic State Distillation: Not as Costly as You Think.
Attributes
d_XSide length of the surface code along which X measurements happen.
d_ZSide length of the surface code along which Z measurements happen.
d_mNumber of code cycles used in lattice surgery.
qecQuantum error correction scheme being used.
Methods#
n_physical_qubits
n_physical_qubits() -> int
The number of physical qubits used by the magic state factory.
p_fail
p_fail(
logical_error_model: 'LogicalErrorModel'
) -> float
p_out
p_out(
logical_error_model: 'LogicalErrorModel'
) -> float
n_cycles
n_cycles(
n_logical_gates: 'GateCounts', logical_error_model: 'LogicalErrorModel'
) -> int
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
factory_error(
n_logical_gates: 'GateCounts', logical_error_model: 'LogicalErrorModel'
) -> float
The total error expected from distilling magic states with a given physical error rate.
__ne__
__ne__(
other
)
Check equality and either forward a NotImplemented or return the result negated.
__eq__
__eq__(
other
)
Method generated by attrs for class FifteenToOne.
View source on GitHub