get_ccz2t_costs#
View source on GitHub
|
Generate spacetime cost and failure probability given physical and logical parameters.
qualtran.surface_code.get_ccz2t_costs(
*,
n_logical_gates: 'GateCounts',
n_algo_qubits: int,
phys_err: float,
cycle_time_us: float,
factory: qualtran.surface_code.MagicStateFactory,
data_block: qualtran.surface_code.DataBlock
) -> qualtran.surface_code.PhysicalCostsSummary
Note that this function can return failure probabilities larger than 1.
This function exists for backwards-compatibility. Consider constructing a PhysicalCostModel
directly.
Args
n_logical_gatesThe number of algorithm logical gates.
n_algo_qubitsNumber of algorithm logical qubits.
phys_errThe physical error rate of the device.
cycle_time_usThe number of microseconds it takes to execute a surface code cycle.
factorymagic state factory configuration. Used to evaluate distillation error and cost.
data_blockdata block configuration. Used to evaluate data error and footprint.
View source on GitHub