qiskit
qiskit copied to clipboard
Add CCZ and CS gates to the circuit library and CNOTDihedral class
What should we add?
The CCZ
gate is locally equivalent (up to 1-qubit gates) to the CCXGate (Toffoli gate).
The CS
gate is locally equivalent (up to 1-qubit gates) to the CSXGate.
First, it may be useful to add these two gates to the circuit library.
Then, one can also add them to the CNOTDihedral class, to obtain a better synthesis of CNOT-Dihedral circuits, using: https://github.com/Qiskit/qiskit-terra/blob/main/qiskit/quantum_info/synthesis/cnotdihedral_decompose.py