get_ccz2t_costs_from_error_budget#

Physical costs using the model from catalyzed CCZ to 2T paper.

n_logical_gates

Number of algorithm logical gates.

n_algo_qubits

Number of algorithm logical qubits.

phys_err

The physical error rate of the device. This sets the suppression factor for increasing code distance.

error_budget

The 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 the data_block argument is provided, this argument is ignored.

cycle_time_us

The number of microseconds it takes to execute a surface code cycle.

routing_overhead

Additional space needed for moving magic states and data qubits around in order to perform operations. If the data_block argument is provided, this argument is ignored.

factory

By default, construct a default CCZ2TFactory(). Otherwise, you can provide your own factory or factory configuration using this argument.

data_block

By default, construct a SimpleDataBlock() according to the error_budget. Otherwise, provide your own data block.