ConstantWithOverheadRotationCost#
qualtran.surface_code.ConstantWithOverheadRotationCost
View source on GitHub
|
A rotation cost of bitsize - 2 toffoli per rotation independent of the error budget.
Inherits From: RotationCostModel
qualtran.surface_code.ConstantWithOverheadRotationCost(
bitsize, overhead_rotation_cost
)
This model assumes a state \(\ket{\phi}\) has been prepared using a standard technique, then each rotation is applied with bitsize digits of accuracy using bitsize - 2 Toffoli gates.
\[
\ket{\phi} = \frac{1}{\sqrt{2^{b}}} \sum_{k=0}^{2^b-1} e^{-2\pi i k/2^b} \ket{k}
\]
Where \(b\) is the bitsize/number of digits of accuracy.
References
Attributes
bitsizeNumber of digits of accuracy for approximating a rotation.
overhead_rotation_costThe cost model of preparing the initial rotation.
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 ConstantWithOverheadRotationCost.
View source on GitHub