Your first quantum experiment
Die Seid isch no net ibersetzt worda. Se gucket die englische Originalversion.
Introduction
In the following video, Olivia Lanes steps you through the content in this lesson. Alternatively, you can open the YouTube video for this lesson in a separate window.
By now, you've run your first quantum circuit and learned the basics of quantum computing: how quantum states are represented, how gates act on those states, and how quantum features like superposition and entanglement are involved. Now it's time to put all of this into practice and solve your first problem on a quantum computer.
We'll explore the broader landscape of quantum-suitable problems in a later lesson. For now, we'll focus on a problem in the domain of nature simulation: using a quantum computer as a cleaner, more controllable stand-in for a natural quantum system. In fact, this was the first application Richard Feynman envisioned for quantum computers in the 1980s. As he famously put it: "Nature isn't classical, dammit, and if you want to make a simulation of nature, you'd better make it quantum mechanical..."
In this lesson, we'll follow that principle to simulate the interaction between two spins, which you can think of as tiny magnets. Depending on the sign of their interaction, they might prefer to align and point in the same direction, or anti-align and point in opposite directions. We'll focus on the latter case because it often leads to more interesting — and more challenging — behavior. Once we understand this small two-qubit system, we'll show how the same ideas scale up, allowing quantum computers to take advantage of their exponential scaling when simulating large spin systems.
Two interacting magnets
For this problem, we're going to use two qubits, one for each spin in our model. Each spin can be pointing up (qubit state