Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version

FourierTransformCircuits

FourierTransformCircuits GitHub(opens in a new tab)

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?