MultiFactory#
qualtran.surface_code.MultiFactory
View source on GitHub
|
Overlay of MagicStateFactory representing multiple factories of the same kind.
Inherits From: MagicStateFactory
qualtran.surface_code.MultiFactory(
base_factory, n_factories
)
All quantities are derived by those of base_factory. footprint is multiplied by
n_factories, n_cycles is divided by n_factories, and distillation_error is independent
on the number of factories.
Args
Attributes
Methods#
n_physical_qubits
n_physical_qubits() -> int
The number of physical qubits used by the magic state factory.
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.
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.
This includes the cumulative effects of data-processing errors and distillation failures.
__ne__
__ne__(
other
)
Check equality and either forward a NotImplemented or return the result negated.
__eq__
__eq__(
other
)
Method generated by attrs for class MultiFactory.
View source on GitHub