RotationLogarithmicModel#
qualtran.surface_code.RotationLogarithmicModel
View source on GitHub
|
A linear model in the log of the error budget with no preparation cost.
Inherits From: RotationCostModel
qualtran.surface_code.RotationLogarithmicModel(
slope, overhead, gateset=attr_dict['gateset'].default
)
\[
\#T = -\textrm{slope} \log_2{\textrm{budget}} + \textrm{overhead}
\]
References
Attributes
slopeThe coefficient of \(log_2{budget}\).
overheadThe overhead.
gatesetA human-readable description of the gate set (e.g. ‘Clifford+T’).
Methods#
rotation_cost
rotation_cost(
error_budget: float
) -> qualtran.resource_counting.GateCounts
Cost of a single rotation.
preparation_overhead
preparation_overhead(
error_budget
) -> qualtran.resource_counting.GateCounts
Cost of preparation circuit.
__ne__
__ne__(
other
)
Check equality and either forward a NotImplemented or return the result negated.
__eq__
__eq__(
other
)
Method generated by attrs for class RotationLogarithmicModel.
View source on GitHub