Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

FourierTransformCircuits

class FourierTransformCircuits

GitHub

DEPRECATED. Quantum Fourier Transform Circuit.


Methods

construct_circuit

static FourierTransformCircuits.construct_circuit(circuit=None, qubits=None, inverse=False, approximation_degree=0, do_swaps=True)

Construct the circuit representing the desired state vector.

Parameters

  • circuit (QuantumCircuit) – The optional circuit to extend from.
  • qubits (Union(QuantumRegister, list[Qubit])) – The optional qubits to construct the circuit with.
  • approximation_degree (int) – degree of approximation for the desired circuit
  • inverse (bool) – Boolean flag to indicate Inverse Quantum Fourier Transform
  • do_swaps (bool) – Boolean flag to specify if swaps should be included to align the qubit order of input and output. The output qubits would be in reversed order without the swaps.

Returns

quantum circuit

Return type

QuantumCircuit

Raises

AquaError – invalid input

Was this page helpful?
Report a bug or request content on GitHub.