qleap.Qft

class qleap.Qft(target, invert=False)

Qft is a class that represents the QFT gate operation in the QLeap framework.

The QFT gate is a gate that performs the quantum Fourier transform (https://en.wikipedia.org/wiki/Quantum_Fourier_transform). It can act on any number of qubits. It is important for quantum algorithms such as Shor’s algorithm.

__init__(target, invert=False)

Creates a Qft instance that represents a QFT gate operation with the given target qubits.

Parameters:

target (QState) – The targets qubit(s) for the QFT gate.

Methods

__init__(target[, invert])

Creates a Qft instance that represents a QFT gate operation with the given target qubits.