Launch the interactive walkthrough to discover each component, including the 3D Q-Sphere Lab & Python in Colab.
Master the second Pauli matrix: simultaneous bit-flip and phase-flip using imaginary units ($i$).
Interactive 3D state vector exploration, unitary transformation gates, and Born rule collapse for Topic 6.5
| Symbol / Term | Meaning | Beginner Interpretation |
|---|---|---|
| Pauli-Y matrix | The combined bit-and-phase flip operator [[0, -i], [i, 0]] | |
| Imaginary unit (i² = -1) | Introduces a 90-degree complex phase shift | |
| Action on ground state | Flips to and attaches phase factor | |
| Action on excited state | Flips to and attaches phase factor |
Applying Pauli-Y to state |0⟩ = [1, 0]^T and verifying probability:
Result: The state is 100% flipped to with an unobservable global phase factor i.
Multiply state by [[0, -i], [i, 0]].
Assigns phase factor +i to component |1> and -i to component |0>.
Rotates Bloch vector 180 degrees around Y-axis.
Problem: Detecting combined bit-flip and phase-flip noise in quantum memory.
Solution: Surface code stabilizer circuits measure Pauli-Y syndrome operators to identify compound errors.
Interactive activity component
Apply the Pauli-Y gate to analyze simultaneous bit-flips and imaginary phase rotations (+i and -i) in Qiskit.
For Google Colab or Jupyter notebooks, run this shell command to install the required dependencies:
!pip install qiskit1 from qiskit import QuantumCircuit 2 from qiskit.quantum_info import Statevector
from qiskit import QuantumCircuit → Circuit constructor
from qiskit.quantum_info import Statevector → Statevector simulator
1 # Pauli-Y matrix: [[0, -i], [i, 0]] 2 # Y|0> = i|1>, Y|1> = -i|0> 3 qc = QuantumCircuit(1) 4 qc.y(0) 5 sv = Statevector.from_instruction(qc) 6 print('Input |0> after Pauli-Y gate:') 7 print(' Amplitudes:', sv.data) 8 print(f' |0> amplitude: {sv.data[0]}') 9 print(f' |1> amplitude: {sv.data[1]} (Imaginary unit i!)') 10 print(' Measurement probabilities:', sv.probabilities_dict())
# Pauli-Y matrix: [[0, -i], [i, 0]]
Pauli Y definition
# Y|0> = i|1>, Y|1> = -i|0>
Mathematical behavior
qc = QuantumCircuit(1)
Single qubit in |0>
qc.y(0)
Apply Pauli-Y gate
sv = Statevector.from_instruction(qc)
Extract statevector
print('Input |0> after Pauli-Y gate:')
Label
print(' Amplitudes:', sv.data)
Complex amplitudes
print(f' |0> amplitude: {sv.data[0]}')
Amplitude 0
print(f' |1> amplitude: {sv.data[1]} (Imaginary unit i!)')
Amplitude 1 = 1j
print(' Measurement probabilities:', sv.probabilities_dict())
100% chance of |1> upon measurement
Click "Copy for Colab", open Google Colab, paste into a single cell, and run.
1 # ========================================================= 2 # Simulating the Pauli-Y Gate & Complex Phases in Qiskit 3 # Prepared for Google Colab (Run with Shift + Enter) 4 # ========================================================= 5 6 # Step 1: Install required packages 7 !pip install qiskit 8 9 # Step 2: Import libraries 10 from qiskit import QuantumCircuit 11 from qiskit.quantum_info import Statevector 12 13 # Step 3: Run Demonstration 14 # Pauli-Y matrix: [[0, -i], [i, 0]] 15 # Y|0> = i|1>, Y|1> = -i|0> 16 qc = QuantumCircuit(1) 17 qc.y(0) 18 sv = Statevector.from_instruction(qc) 19 print('Input |0> after Pauli-Y gate:') 20 print(' Amplitudes:', sv.data) 21 print(f' |0> amplitude: {sv.data[0]}') 22 print(f' |1> amplitude: {sv.data[1]} (Imaginary unit i!)') 23 print(' Measurement probabilities:', sv.probabilities_dict())
Rotate state |0> by pi radians around the Y-axis.
Observe that the state transforms to i|1>.
Observe that while the phase is imaginary (i), measurement probability is |i|^2 = 1.0.
QuantumCircuit(1) with Y(0).
Amplitudes: [0.0 + 0.0j, 0.0 + 1.0j]
|1> amplitude = 1j
Measurement probabilities: {'1': 1.0}Pauli-Y combines a bit-flip with a quarter-turn complex phase shift of +i. Because |i|^2 = 1, it measures as 1 with certainty but carries an imaginary relative phase.
Hadamard, CNOT, Bell-state intuition, and correlated quantum circuits.
Test your understanding with these questions. Remember, this is for learning, not examination!