Qiskit, Quantum Computing, Python, Quantum Gate.
lie on the z-axis, the Z-gate will not affect these states. To put it in other terms |0⟩ and |1⟩ are the two eigenstates of the Z-gate. On the other hand, it flips |+⟩ to |-⟩ and |-⟩ to |+⟩. To see this in action let’s initialize the state vector to |+⟩ and visualize how Z gate transforms the