From the course: Quantum Computing Fundamentals

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Pauli-Y gate with Qiskit

Pauli-Y gate with Qiskit

- [Instructor] Let's use Qiskit to explore the effects of the Pauli-Y gate on quantum states. Our starting point is a basic circuit which is initialized in the second notebook cell to have a single qubit. To use the Y gate on that qubit, we'll call the y function on that circuit, pass at the index of our one and only qubit, which is 0. I'll click the Run All button to run the notebook. That updates the quantum circuit diagram to include our Y gate, and on the Bloch sphere down below, our state has flipped from 0 to 1. Looking at the statevector, which is printed just above the Bloch sphere, we can see that the second complex coefficient is now i, representing the imaginary unit. So, as we discussed in the previous video, the Pauli-Y gate has applied a global phase in addition to flipping the bit. If we change the Pauli-Y gate to a Pauli-X gate and rerun the notebook, the Bloch sphere visualization doesn't change,…

Contents