qp.labs.estimator_beta.aqft_resource_decomp¶
- aqft_resource_decomp(order, num_wires)[source]¶
Returns a list representing the resources of the operator. Each object in the list represents a gate and the number of times it occurs in the circuit.
- Parameters:
order (int) – the maximum number of controlled phase shifts to which the operation is truncated
num_wires (int) – the number of qubits the operation acts upon
- Resources:
The resources are obtained from (Fig. 4) arXiv:1803.04933 excluding the gate cost of preparing the phase gradient state. The phased Toffoli gates and the classical measure-and-reset (Fig. 2) are accounted for as
TemporaryANDoperations.
- Returns:
A list of GateCount objects, where each object represents a specific quantum gate and the number of times it appears in the decomposition.
- Return type:
list[
GateCount]