get_ccz2t_costs_from_error_budget#
View source on GitHub
|
Physical costs using the model from catalyzed CCZ to 2T paper.
qualtran.surface_code.get_ccz2t_costs_from_error_budget(
*,
n_logical_gates: 'GateCounts',
n_algo_qubits: int,
phys_err: float = 0.001,
error_budget: float = 0.01,
cycle_time_us: float = 1.0,
routing_overhead: float = 0.5,
factory: Optional[qualtran.surface_code.MagicStateFactory] = None,
data_block: Optional[qualtran.surface_code.DataBlock] = None
) -> qualtran.surface_code.PhysicalCostsSummary
Args
n_logical_gatesNumber of algorithm logical gates.
n_algo_qubitsNumber of algorithm logical qubits.
phys_errThe physical error rate of the device. This sets the suppression factor for increasing code distance.
error_budgetThe acceptable chance of an error occurring at any point. This includes data storage failures as well as top-level distillation failure. By default, this follows the prescription of the paper: distillation error is fixed by factory parameters and
n_magic. The data block code distance is then chosen from the remaining error budget. If distillation error exceeds the budget, the cost estimate will fail. If thedata_blockargument is provided, this argument is ignored.cycle_time_usThe number of microseconds it takes to execute a surface code cycle.
routing_overheadAdditional space needed for moving magic states and data qubits around in order to perform operations. If the
data_blockargument is provided, this argument is ignored.factoryBy default, construct a default
CCZ2TFactory(). Otherwise, you can provide your own factory or factory configuration using this argument.data_blockBy default, construct a
SimpleDataBlock()according to theerror_budget. Otherwise, provide your own data block.
View source on GitHub