qp.labs.estimator_beta.qft_phase_grad_resource_decomp

qft_phase_grad_resource_decomp(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.

Note

This decomposition assumes an appropriately sized phase gradient state is available. Users should ensure the cost of constructing such a state has been accounted for. See also PhaseGradient.

Parameters:

num_wires (int) – the number of qubits the operation acts upon

Resources:

The resources are obtained as presented in the article Turning Gradients into Additions into QFTs. Specifically, following the figure titled “8 qubit Quantum Fourier Transform with gradient shifts”

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]