ConstantWithOverheadRotationCost#

qualtran.surface_code.ConstantWithOverheadRotationCost

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

Inherits From: RotationCostModel

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.

bitsize

Number of digits of accuracy for approximating a rotation.

overhead_rotation_cost

The cost model of preparing the initial rotation.

Methods#

rotation_cost

View source

Cost of a single rotation.

preparation_overhead

View source

Cost of preparation circuit.

__ne__

Check equality and either forward a NotImplemented or return the result negated.

__eq__

Method generated by attrs for class ConstantWithOverheadRotationCost.