seemps.qft.qft_wavefunction#

seemps.qft.qft_wavefunction(Ψ: Vector) Vector[source]#

Implement the QFT on a state vector.

This routine uses numpy.fft.fft() and is provided here as a convenience, so that the user can compare the action of the QFT on an MPS and on a vector.

Parameters:
ΨVector

A wavefunction in numpy.ndarray format.

Returns:
Vector

Transformed state.