get_ccz2t_costs#

Generate spacetime cost and failure probability given physical and logical parameters.

Note that this function can return failure probabilities larger than 1.

This function exists for backwards-compatibility. Consider constructing a PhysicalCostModel directly.

n_logical_gates

The number of algorithm logical gates.

n_algo_qubits

Number of algorithm logical qubits.

phys_err

The physical error rate of the device.

cycle_time_us

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

factory

magic state factory configuration. Used to evaluate distillation error and cost.

data_block

data block configuration. Used to evaluate data error and footprint.