QFT#

diffqc.lib.QFT(op, c: Array, wires: Tuple[int]) Array#

Quantum Fourier Transform

Parameters
  • opdense or sparse module

  • c (jnp.ndarray) – qubits state

  • wires (tuple of ints) – wire to apply.

Returns

applied qubits state

Return type

jnp.ndarray

Warning

This QFT doesn’t swap wires, so that endian is inverted.