Module: surface_code#

Physical cost models for surface code architectures.

Modules#

algorithm_summary module

ccz2t_factory module

data_block module

fifteen_to_one_factory module

gidney_fowler_model module

magic_state_factory module

multi_factory module

physical_cost_model module

physical_cost_summary module

physical_parameters module

qec_scheme module

rotation_cost_model module

t_factory_utils module

Classes#

class AlgorithmSummary: Logical costs of a quantum algorithm that impact modeling of its physical cost.

class PhysicalCostsSummary

class PhysicalParameters: The physical properties of a quantum computer.

class LogicalErrorModel: A model for getting the logical error rate at a given code distance.

class QECScheme: A model of the error-correction scheme used to suppress errors

class MagicStateFactory: Methods for modeling the costs of the magic state factories of a surface code compilation.

class CCZ2TFactory: Magic state factory costs using the model from catalyzed CCZ to 2T paper.

class FifteenToOne: 15-to-1 Magic T state factory.

class CompactDataBlock: The compact data block uses a fixed code distance and one, long access hallway.

class DataBlock: Methods for modeling the costs of the data block of a surface code compilation.

class FastDataBlock: The fast data block uses a fixed code distance and a square layout.

class IntermediateDataBlock: The intermediate data block uses a fixed code distance and routing overhead.

class SimpleDataBlock: A simple data block that uses a fixed code distance and routing overhead.

class MultiFactory: Overlay of MagicStateFactory representing multiple factories of the same kind.

class ConstantWithOverheadRotationCost: A rotation cost of bitsize - 2 toffoli per rotation independent of the error budget.

class RotationCostModel: Analytical estimate of the complexity of approximating a rotation given an error budget.

class RotationLogarithmicModel: A linear model in the log of the error budget with no preparation cost.

class PhysicalCostModel: A model for estimating physical costs from algorithm counts.

Functions#

get_ccz2t_costs(...): Generate spacetime cost and failure probability given physical and logical parameters.

get_ccz2t_costs_from_error_budget(...): Physical costs using the model from catalyzed CCZ to 2T paper.

get_ccz2t_costs_from_grid_search(...): Grid search over parameters to minimize the space-time volume.

iter_ccz2t_factories(...): Iterate over CCZ2T (multi)factories in the given range of distillation code distances

iter_simple_data_blocks(...)

BeverlandEtAlRotationCost

Instance of qualtran.surface_code.RotationLogarithmicModel

SevenDigitsOfPrecisionConstantCost

Instance of qualtran.surface_code.ConstantWithOverheadRotationCost