CnotStar
QuICT.qcda.optimization.cnot_dag.CnotStar ¶
Optimize a star-like CNOT circuit. Every CNOT gate in such circuits has the same control qubit and different target qubits(or in reverse).
Examples:
>>> from QuICT.qcda.optimization.cnot_dag import CnotStar
>>> cs = CnotStar()
>>> # this circuit has CNOT gates: (3, 2), (3, 1), (3, 0)
>>> circuit = cs.execute(4, [3, 2, 1, 0])