Standard
class Standard(num_qubits)
The Standard IQFT.
The standard version of the IQFT is simply the inverse of a plain QFT.
Parameters
num_qubits (int
) – The number of qubits
Methods
construct_circuit
Standard.construct_circuit(mode='circuit', qubits=None, circuit=None, do_swaps=True)
Construct the circuit.
Parameters
- mode (str) – ‘matrix’ or ‘circuit’
- qubits (QuantumRegister or qubits) – register or qubits to build the circuit on.
- circuit (QuantumCircuit) – circuit for construction.
- do_swaps (bool) – include the swaps.
Returns
The matrix or circuit depending on the specified mode.
Return type
numpy.ndarray
Raises
AquaError – Unrecognized mode
Was this page helpful?
Report a bug or request content on GitHub.