Launch the interactive walkthrough to discover each component, including the 3D Q-Sphere Lab & Python in Colab.
Understand the formal quantum circuit model: state preparation, unitary gate sequences, entanglement synthesis, and projective measurement.
Grasp complex quantum concepts visually with zero prior physics or math knowledge!
Buzzer ON (1) or SILENT (0)
Binary switch. Can only buzz a single monotone frequency.
Multi-Harmonic Synthesizer
Unitary gates tune wave phases so dissonance cancels out and pure harmony rings!
Adjust phase to see wave constructive harmony or destructive cancellation.
HARMONIC RESONANCE (100% Amplitude)
In-phase components constructively amplify into the crystal clear right answer!
Interactive 3D state vector exploration, unitary transformation gates, and Born rule collapse for Topic 5.4
| Symbol / Term | Meaning | Beginner Interpretation |
|---|---|---|
| Quantum state vector (Ket-Psi) | The total current state and recipe of the qubit | |
| Computational basis states | The two baseline states: and | |
| Probability amplitude for state | Square root of the probability of measuring 0 | |
| Probability amplitude for state | Square root of the probability of measuring 1 | |
| Normalization constraint | Ensures the sum of all physical outcomes equals 100% (1.0) |
Evaluating a qubit prepared with α = √3 / 2 ≈ 0.866 and β = 1 / 2 = 0.5:
Result: The qubit has a 75% chance of collapsing to 0 and a 25% chance of collapsing to 1.
Reset all qubits to |0> state.
Send precise microwave or laser pulses to rotate state vectors.
Couple qubits to readout resonators to measure collapse into classical bitstrings.
Problem: Calculating ground-state energy of lithium hydride (LiH).
Solution: Variational Quantum Eigensolver (VQE) circuit evaluates molecular Hamiltonian on cloud QPUs.
Interactive activity component
Construct the canonical Bell state (|00> + |11>)/sqrt(2) in Qiskit and simulate measurement correlations.
For Google Colab or Jupyter notebooks, run this shell command to install the required dependencies:
!pip install qiskit qiskit-aer1 from qiskit import QuantumCircuit 2 from qiskit.quantum_info import Statevector 3 from qiskit_aer import AerSimulator
from qiskit import QuantumCircuit → Qiskit circuit class
from qiskit.quantum_info import Statevector → Simulate exact statevector
from qiskit_aer import AerSimulator → Shot-based simulator
1 # 1. Create a 2-qubit Bell State: (|00> + |11>)/sqrt(2) 2 qc = QuantumCircuit(2, 2) 3 qc.h(0) # Put qubit 0 into equal superposition 4 qc.cx(0, 1) # Entangle qubit 1 with qubit 0 5 print('Qiskit Bell State Circuit Diagram:') 6 print(qc.draw('text')) 7 8 # 2. Theoretical Statevector 9 sv = Statevector.from_instruction(qc) 10 print('\nStatevector Amplitudes:') 11 for state, prob in sv.probabilities_dict().items(): 12 print(f' |{state}> : Probability = {prob * 100:.1f}%') 13 14 # 3. Measure on AerSimulator (1024 shots) 15 qc.measure([0, 1], [0, 1]) 16 sim = AerSimulator() 17 counts = sim.run(qc, shots=1024).result().get_counts() 18 print('\nAerSimulator Measurement Results (1024 shots):') 19 print(' ', counts)
# 1. Create a 2-qubit Bell State: (|00> + |11>)/sqrt(2)
Setup Bell circuit
qc = QuantumCircuit(2, 2)
2 qubits and 2 classical bits
qc.h(0) # Put qubit 0 into equal superposition
Create superposition on control
qc.cx(0, 1) # Entangle qubit 1 with qubit 0
CNOT entangler
print('Qiskit Bell State Circuit Diagram:')
Diagram label
print(qc.draw('text'))
Print text-based circuit
# 2. Theoretical Statevector
Inspect statevector
sv = Statevector.from_instruction(qc)
Compute statevector
print('\nStatevector Amplitudes:')
Label
for state, prob in sv.probabilities_dict().items():
Iterate probabilities
print(f' |{state}> : Probability = {prob * 100:.1f}%')
Show 50% for |00> and 50% for |11>
# 3. Measure on AerSimulator (1024 shots)
Simulate measurement
qc.measure([0, 1], [0, 1])
Add measurement gates
sim = AerSimulator()
Initialize simulator
counts = sim.run(qc, shots=1024).result().get_counts()
Run 1024 shots
print('\nAerSimulator Measurement Results (1024 shots):')
Display counts
print(' ', counts)
Outcome dictionary
Click "Copy for Colab", open Google Colab, paste into a single cell, and run.
1 # ========================================================= 2 # Creating and Simulating a Bell Entangled State in Qiskit 3 # Prepared for Google Colab (Run with Shift + Enter) 4 # ========================================================= 5 6 # Step 1: Install required packages 7 !pip install qiskit qiskit-aer 8 9 # Step 2: Import libraries 10 from qiskit import QuantumCircuit 11 from qiskit.quantum_info import Statevector 12 from qiskit_aer import AerSimulator 13 14 # Step 3: Run Demonstration 15 # 1. Create a 2-qubit Bell State: (|00> + |11>)/sqrt(2) 16 qc = QuantumCircuit(2, 2) 17 qc.h(0) # Put qubit 0 into equal superposition 18 qc.cx(0, 1) # Entangle qubit 1 with qubit 0 19 print('Qiskit Bell State Circuit Diagram:') 20 print(qc.draw('text')) 21 22 # 2. Theoretical Statevector 23 sv = Statevector.from_instruction(qc) 24 print('\nStatevector Amplitudes:') 25 for state, prob in sv.probabilities_dict().items(): 26 print(f' |{state}> : Probability = {prob * 100:.1f}%') 27 28 # 3. Measure on AerSimulator (1024 shots) 29 qc.measure([0, 1], [0, 1]) 30 sim = AerSimulator() 31 counts = sim.run(qc, shots=1024).result().get_counts() 32 print('\nAerSimulator Measurement Results (1024 shots):') 33 print(' ', counts)
Apply Hadamard gate to qubit 0.
Apply CNOT from qubit 0 to qubit 1, producing non-separable Bell state (|00> + |11>)/sqrt(2).
Execute 1024 shots on AerSimulator confirming perfect correlation: only '00' and '11' are observed.
QuantumCircuit with H(0) and CNOT(0, 1).
Statevector: |00>: 50.0%, |11>: 50.0%
AerSimulator counts (1024 shots): {'00': ~512, '11': ~512}The two qubits are maximally entangled: measuring qubit 0 immediately determines the state of qubit 1 with 100% certainty, even before qubit 1 is measured.
From Probability and Complex Numbers to Qubits, Interference, Entanglement, and Multi-Qubit Systems by Dr. Syed Muzamil Basha.
Test your understanding with these questions. Remember, this is for learning, not examination!