QFT#

An implementation of qubits and gates acting on them.

Todo:

  • Update docstrings.

  • Update tests.

  • Implement apply using decompose.

  • Implement represent using decompose or something smarter. For this to work we first have to implement represent for SWAP.

  • Decide if we want upper index to be inclusive in the constructor.

  • Fix the printing of Rk gates in plotting.

class sympy.physics.quantum.qft.IQFT(*args, **kwargs)[source]#

The inverse quantum Fourier transform.

decompose()[source]#

Decomposes IQFT into elementary gates.

class sympy.physics.quantum.qft.QFT(*args, **kwargs)[source]#

The forward quantum Fourier transform.

decompose()[source]#

Decomposes QFT into elementary gates.

sympy.physics.quantum.qft.Rk[source]#

alias of RkGate

class sympy.physics.quantum.qft.RkGate(*args)[source]#

This is the R_k gate of the QTF.