Launch the interactive walkthrough to discover each component, including the 3D Q-Sphere Lab & Python in Colab.
Understand the classical foundation: Claude Shannon’s binary digit, Boolean logic gates, and physical CMOS transistor implementations.
Grasp complex quantum concepts visually with zero prior physics or math knowledge!
Irreversible Erasure (+Heat!)
Landauer's limit: wiping a bit dumps heat (k_B T ln 2) into the room.
Zero Heat Dissipation (U†U = I)
Quantum gates never delete data; every operation can be run backwards!
Compare classical data erasure vs quantum reversible rotation.
Click "Erase Bit" or "Reversible Quantum Gate" to test Landauer's heat principle.
Interactive 3D state vector exploration, unitary transformation gates, and Born rule collapse for Topic 5.6
| Symbol / Term | Meaning | Beginner Interpretation |
|---|---|---|
| Shannon Entropy (measured in bits) | Average surprise or information content generated by the bit | |
| Probability of bit outcome i | Likelihood of receiving 0 or 1 | |
| Logarithm base 2 of probability | Number of binary yes/no questions needed to identify the outcome | |
| Negative sum | Turns negative logarithms into a positive measure of information |
Comparing the entropy of deterministic, fair, and biased bits:
Result: A fair classical bit delivers exactly 1.0 bit of Shannon information; any predictability reduces its informational value.
0V to 0.8V represents Low (0); 2.0V to 3.3V represents High (1).
NAND gates combine binary voltages to implement universal Boolean logic.
Capacitor charges in DRAM or magnetic polarities on hard disk platters retain bit values.
Problem: Compressing text and video files to transmit across fiber optic cables without loss.
Solution: Huffman and Shannon-Fano coding compress files down to their theoretical Shannon entropy limit.
Interactive activity component
Simulate bit flips and phase flips on single qubits using Qiskit, highlighting the difference between Boolean bits and quantum states.
For Google Colab or Jupyter notebooks, run this shell command to install the required dependencies:
!pip install qiskit numpy1 from qiskit import QuantumCircuit 2 from qiskit.quantum_info import Statevector
from qiskit import QuantumCircuit → Circuit module
from qiskit.quantum_info import Statevector → Statevector module
1 # Classical bit can only be 0 or 1. A Qubit has phase and superposition. 2 qc = QuantumCircuit(1) 3 print('Initial state |0>:', Statevector.from_instruction(qc).data.round(2)) 4 5 # Bit Flip (Pauli-X) 6 qc.x(0) 7 print('After Bit Flip X(|0>):', Statevector.from_instruction(qc).data.round(2)) 8 9 # Superposition (Hadamard) 10 qc.h(0) 11 print('After Superposition H(|1>):', Statevector.from_instruction(qc).data.round(4)) 12 13 # Phase Flip (Pauli-Z) has NO classical analog 14 qc.z(0) 15 print('After Phase Flip Z(|->):', Statevector.from_instruction(qc).data.round(4)) 16 print('\nNotice: Classical bits have only values; qubits have both values and quantum phases!')
# Classical bit can only be 0 or 1. A Qubit has phase and superposition.
Introduction
qc = QuantumCircuit(1)
Initialize qubit in |0>
print('Initial state |0>:', Statevector.from_instruction(qc).data.round(2))
Initial state
# Bit Flip (Pauli-X)
Bit-flip
qc.x(0)
Flip |0> to |1>
print('After Bit Flip X(|0>):', Statevector.from_instruction(qc).data.round(2))
Result |1>
# Superposition (Hadamard)
Superposition
qc.h(0)
Apply H: transforms |1> into |->
print('After Superposition H(|1>):', Statevector.from_instruction(qc).data.round(4))
State |-> = [0.7071, -0.7071]
# Phase Flip (Pauli-Z) has NO classical analog
Phase-flip
qc.z(0)
Apply Z: flips phase of |-> to |+>
print('After Phase Flip Z(|->):', Statevector.from_instruction(qc).data.round(4))
State |+> = [0.7071, 0.7071]
print('\nNotice: Classical bits have only values; qubits have both values and quantum phases!')
Summary
Click "Copy for Colab", open Google Colab, paste into a single cell, and run.
1 # ========================================================= 2 # Comparing Classical Bits and Quantum Qubits in Qiskit 3 # Prepared for Google Colab (Run with Shift + Enter) 4 # ========================================================= 5 6 # Step 1: Install required packages 7 !pip install qiskit numpy 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 # Classical bit can only be 0 or 1. A Qubit has phase and superposition. 15 qc = QuantumCircuit(1) 16 print('Initial state |0>:', Statevector.from_instruction(qc).data.round(2)) 17 18 # Bit Flip (Pauli-X) 19 qc.x(0) 20 print('After Bit Flip X(|0>):', Statevector.from_instruction(qc).data.round(2)) 21 22 # Superposition (Hadamard) 23 qc.h(0) 24 print('After Superposition H(|1>):', Statevector.from_instruction(qc).data.round(4)) 25 26 # Phase Flip (Pauli-Z) has NO classical analog 27 qc.z(0) 28 print('After Phase Flip Z(|->):', Statevector.from_instruction(qc).data.round(4)) 29 print('\nNotice: Classical bits have only values; qubits have both values and quantum phases!')
Apply Pauli-X gate to invert computational basis state.
Apply Hadamard gate to create equal amplitude combination.
Apply Pauli-Z gate demonstrating quantum phase modulation which does not exist classically.
QuantumCircuit(1) with X, H, and Z operations.
Initial state: [1.0, 0.0] After Bit Flip: [0.0, 1.0] After Superposition: [0.7071, -0.7071] After Phase Flip: [0.7071, 0.7071]
A classical bit is restricted to discrete states 0 or 1. A qubit possesses a continuous phase degree of freedom that enables constructive and destructive wave interference.
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!