Special Report

Diving into the Quantum Realm: Earning My QBronze Diploma

My experience learning Quantum Computing and Programming with Qiskit through QWorld and QNepal.

Diving into the Quantum Realm: Earning My QBronze Diploma
Illustration or photograph accompanying the article. Courtesy of The Ashutosh Gazette archives.

Quantum computing has always been a fascinating subject for me. The idea of leveraging the bizarre principles of quantum mechanics—superposition and entanglement—to solve computational problems exponentially faster than classical computers is nothing short of revolutionary. Recently, I had the incredible opportunity to take a deep dive into this field and earn my QBronze Diploma in Quantum Computing & Programming with Qiskit.

This journey was made possible by QWorld, a global network of individuals and groups striving to popularize quantum technologies, and their local chapter, QNepal. Their workshop provided an accessible yet rigorous introduction to the foundational concepts of quantum computing.

The Learning Curve

Coming from a classical computing background, shifting my mindset to understand qubits and quantum states was challenging but incredibly rewarding. Unlike classical bits which are strictly 0 or 1, qubits exist in a superposition of states. To truly grasp how this works, we had to dive deep into Linear Algebra and the mathematical foundations of Quantum Mechanics.

We modeled quantum systems using complex vector spaces (specifically, Hilbert spaces). A single qubit’s state is represented by a column vector containing complex probability amplitudes, $ \alpha $ and $ \beta $, subject to the normalization constraint $ |\alpha|^2 + |\beta|^2 = 1 $.

From a physics standpoint, we explored concepts like the Bloch Sphere—a geometrical representation of the pure state space of a two-level quantum mechanical system (qubit)—and Unitary Evolution, which guarantees that the sum of probabilities always remains 1. Quantum gates are essentially unitary matrices that rotate the state vector around this sphere.

Bloch Sphere Illustration

Some of the core topics covered during the workshop included:

  • Quantum States and Operators: Understanding Dirac notation (bra-ket notation) and how matrices representing operators multiply state vectors to evolve the system.
  • Quantum Gates: Learning about Pauli gates (X, Y, Z), the Hadamard (H) gate (which creates a uniform superposition), and the CNOT gate. We computed their tensor products to understand multi-qubit systems.

Abstract Quantum Gates Circuit

  • Entanglement: Mathematically proving the non-separability of Bell states and observing how measuring one entangled qubit instantaneously collapses the state of the other—famously referred to by Einstein as “spooky action at a distance.”
  • Quantum Protocols: Implementing fundamental protocols like Quantum Teleportation and Superdense Coding, which rely on entanglement as a resource.

Hands-on with Qiskit

Theory is one thing, but seeing quantum circuits run is another. The workshop was heavily hands-on, utilizing Qiskit, an open-source quantum computing software framework developed by IBM.

Writing code in Python to construct quantum circuits and running them on simulators—and eventually accessing IBM’s real quantum hardware over the cloud—was the highlight of the experience. We learned how to measure quantum states, plot histograms of the results, and interpret the probabilistic nature of the outputs.

# A simple example of creating entanglement with Qiskit
from qiskit import QuantumCircuit, transpile
from qiskit.providers.aer import AerSimulator
from qiskit.visualization import plot_histogram

# Create a Quantum Circuit with 2 qubits and 2 classical bits
qc = QuantumCircuit(2, 2)

# Apply Hadamard gate to the first qubit
qc.h(0)

# Apply CNOT gate with qubit 0 as control and qubit 1 as target
qc.cx(0, 1)

# Measure both qubits
qc.measure([0, 1], [0, 1])

qc.draw('mpl')

Implementing Quantum Teleportation

Beyond simple entanglement, we also implemented more advanced protocols like Quantum Teleportation. This protocol allows us to transfer quantum information from one qubit to another using an entangled pair and classical communication. Here is a brief look at how we constructed it using Qiskit:

# Quantum Teleportation Protocol
teleport_qc = QuantumCircuit(3, 2)

# Step 1: Create an entangled pair between Alice (q1) and Bob (q2)
teleport_qc.h(1)
teleport_qc.cx(1, 2)

# Step 2: Alice prepares her payload (q0) and entangles it with her half of the pair (q1)
teleport_qc.cx(0, 1)
teleport_qc.h(0)

# Step 3: Alice measures her qubits and sends the classical results to Bob
teleport_qc.barrier()
teleport_qc.measure([0, 1], [0, 1])

# Step 4: Bob applies conditional gates based on Alice's classical bits to reconstruct the state
teleport_qc.cx(1, 2)
teleport_qc.cz(0, 2)

teleport_qc.draw('mpl')

Looking Ahead

Earning the QBronze diploma is just the beginning. The workshop successfully demystified quantum computing for me and provided a solid foundation to explore more complex quantum algorithms like Grover’s and Shor’s algorithms.

I want to extend my gratitude to the instructors and mentors at QWorld and QNepal for their dedication and for making quantum computing accessible. I’m excited to continue my journey in this cutting-edge field and see how quantum technologies will shape the future of computing!