Quantum Computing, Quantum Computer, Qiskit, Quantum Physics, Python.
sim.run(qc).result().get_statevector() plot_bloch_multivector(state) As you can see the state remains in the |0⟩ state, so Identity operator keeps the state unchanged and we can also infer from this that the quantum gates are invertible. Hence X is it’s own inverse. That’s why adding another X gate