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.QFT[source]

The forward quantum Fourier transform.

decompose()[source]

Decomposes QFT into elementary gates.

class sympy.physics.quantum.qft.IQFT[source]

The inverse quantum Fourier transform.

decompose()[source]

Decomposes IQFT into elementary gates.

class sympy.physics.quantum.qft.RkGate[source]

This is the R_k gate of the QTF.

sympy.physics.quantum.qft.Rk

alias of RkGate

Previous topic

Grover’s Algorithm

Next topic

Qubit

This Page