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.
RkGate
[source]¶ This is the R_k gate of the QTF.
-
get_target_matrix
(format='sympy')[source]¶ The matrix rep. of the target part of the gate.
Parameters: format : str
The format string (‘sympy’,’numpy’, etc.)
-
targets
¶ A tuple of target qubits.
-
-
sympy.physics.quantum.qft.
Rk
¶ alias of
sympy.physics.quantum.qft.RkGate