Quantum Computing, Quantum Gate, Qiskit.
no ancilla bit is needed. Map 5: XOR Gate -> Mapping and Matrix IBM Qiskit is having a special gate for this purpose. which is known as CNOT or CX gate. The net effect of the gate in this setting is: It keeps the 1st qubit unchanged; Fig: 12 Achieved classical XOR gate It flips the 2nd qubit if 1st