Quantum Computing, Superposition, Entanglement, Wave Function, Artificial Intelligence.
represents the imaginary unit, often denoted as “i” in other contexts. The second printout (after X gate) should read like [0.5+0.j, -0.5+0.j, -0.5+0.j, 0.5+0.j] which reveals that the X gate flips |q0⟩’s state and affects |q1⟩ accordingly. The amplitudes of |01⟩ and |10⟩ states are now negative,