Skip to content

Commit

Permalink
Add CPHASE gate to list of control gates
Browse files Browse the repository at this point in the history
  • Loading branch information
gecrooks authored and BoxiLi committed Apr 18, 2021
1 parent 5d1719c commit a0f5c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qutip_qip/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def DisplaySVG(data, *args, **kwargs):
_para_gates = ["RX", "RY", "RZ", "CPHASE", "SWAPalpha", "PHASEGATE",
"GLOBALPHASE", "CRX", "CRY", "CRZ", "QASMU"]
_ctrl_gates = ["CNOT", "CSIGN", "CRX", "CRY", "CRZ", "CY", "CZ",
"CS", "CT"]
"CS", "CT", "CPHASE"]
_swap_like = ["SWAP", "ISWAP", "SQRTISWAP", "SQRTSWAP", "BERKELEY",
"SWAPalpha"]
_toffoli_like = ["TOFFOLI"]
Expand Down

0 comments on commit a0f5c0f

Please sign in to comment.