Search

Quantum Superposition and Entanglement Simulation

Quantum Computing From Bits to Quantum Leaps cover image

Overview

Secondary School

Physics, Mathematics, Computer Science, Engineering

Quantum Computing

English

Overview

Keywords: Quantum simulation, superposition, entanglement, Arduino, visualisation, Tinkercad circuits
Age group: 14-17
Required knowledge/skills: Basic electronics, Arduino programming, circuit design, working in tinkercad.com virtual environment, basic understanding of quantum concepts
Time frame: 1-2 hours per simulator: assembling the circuit in Tinkercad and uploading simple Arduino code to the microcontroller(s) to simulate superposition and/or entanglement (like LED blinking patterns).

Authors: Astrinos Tsoutsoudakis (GR)

Content

Required materials
Tasks for teachers/students
The superposition simulator
The entanglement simulator

Summary

This project introduces students to the fundamental concept of quantum superposition and quantum entanglement using a hands-on electronic circuit built in Tinkercad. By combining basic electronics (LEDs, buttons, switches) with Arduino programming, students simulate how a quantum bit (qubit) can exist in a superposition state or how two qubits can be entangled. Superposition and entanglement are two complex and counter-intuitive concepts that are at the core of quantum computing.
Through this hands-on approach, students don’t just hear about superposition and entanglement – they see it, build it, and experiment with it, turning two of quantum mechanics' most mind-bending ideas into an engaging, concrete learning experience.

Quantum Computing From Bits to Quantum Leaps teaser

Required materials

Hardware (if building the actual circuit)

For the superposition simulator
NameQuantityComponent
U11Arduino Uno R3
D11RCBG LED RGB
Rpot11250 kΩ Potentiometer
S11Slide switch
R1 / R22220 Ω Resistor
R3 / R4210 kΩ Resistor
S21Pushbutton

 

For the entanglement simulator
NameQuantityComponent
UA / UB2Arduino Uno R3
D1 / D22RCBG LED RGB
S1 / S22Pushbutton
S3 / S42Slide switch
R1 / R2 / R3 / R4410 kΩ Resistor
R5 / R6 / R7 / R84220 Ω Resistor

Tasks for teachers

  • Set up Tinkercad classrooms, provide Arduino code templates, circuit diagrams.
  • Introduce quantum concepts and explain superposition and entanglement simply (see other lessons in this project).
  • Show how the circuit simulates superposition and entanglement through LEDs blinking, fading, or reacting to switches.
  • Help students place components correctly: LEDs, resistors, buttons, slide switches.
  • Provide support for coding activities.
  • Encourage inquiry and discussion.
  • Use short quizzes, discussion, or mini-presentations to check comprehension.

Tasks for students

  • Learn basic electronics and coding.
  • Assemble the circuit in Tinkercad, upload and modify code.
  • Experiment with the superposition and entanglement simulator.
  • Document what they did and present findings and difficulties.
  • Think creatively about how to make the simulation even closer to real quantum systems and suggest improvements.

The superposition simulator

You find the Tinkercad simulation for reuse here.

In the strange world of quantum physics, particles like electrons or photons don’t simply exist in one state or another – they can exist in multiple states at once, a phenomenon called superposition. The Arduino circuit that will be built in this lesson mimics a quantum system being in a superposition of two basis states, |0 and |1. Until a measurement is performed, one can only give probabilities as to whether the system is in state |0 or in state |1.

In the electronic circuit that we will design with Tinkercad and build with Arduino and electronic elements (like control LEDs, buttons, and switches), these probabilities will be simulated using the randomness generated from Arduino's analogRead() function and the fluctuating noise from an unused analogue pin.

To introduce adjustable “probabilities” that will collapse into a concrete measured value, we can use a potentiometer. By reading the potentiometer's value with analogRead(), we can adjust the likelihood of collapsing into state |0 or |1.

The RGB LED glows during the “superposition” phase and after the “measurement,” the LED turns either red (|0) or green (|1). The loop continuously resets the system, demonstrating the important concepts of superposition and measurement in quantum physics.

The pushbutton in the pictured circuit design is responsible for taking the measurement, while the slide switch alternates between the two randomness generators.

tinkercad screenshot
© screenshot
A circuit simulating superposition realised in the tinkercad.com virtual environment
circuit diagram for simulating superposition
© screenshot
Circuit diagram for simulating superposition
The circuit simulated in tinkercad.com environment
© screenshot
The circuit simulated in tinkercad.com environment

Note that when randomness is set to come from the unconnected pin A0, that source is biased (the predicted likelihood is different from the actual results, see next picture) toward the potentiometer value, because all analogue pins share the same ADC (Analog-to-Digital Converter) bus. This means they are multiplexed into a single ADC, and only one pin can be read at a time as the ADC sequentially switches between them.

To reduce this bias and make things more interesting, we can connect a bare wire of 10–20 cm to an analogue input pin (such as A0 on an Arduino) and leave it floating (unconnected to voltage or ground). This allows it to pick up environmental noise — especially electromagnetic noise from nearby electronics, lights, Wi-Fi, or even from our own body when we approach or touch the wire.

Arduino IDE serial port printer shows the relevance between expected and produced random values for the random number generation function
Arduino IDE serial port printer shows the relevance between expected and produced random values for the random number generation function
Despite the predicted likelihood of 50% - 50%, the collapsed states are biased towards 20% - 80%

The entanglement simulator

You find the Tinkercad simulation for reuse here.

Quantum concepts like entanglement are hard to grasp as they don’t have a direct analogy in our experience of daily life. A simulation enables students to visualise this concept. In this activity, students can create two entangled objects that are linked to each other so that if one object is measured (for example, it changes its initial colour from blue to red), the other object instantly changes its state too in a predefined way (for example, it changes its initial colour from green to yellow), demonstrating how the two objects are “linked together”. In quantum physics we call this entanglement.

The simulation helps students understand the difference between quantum entanglement and a classical correlation. In a classical world, imagine placing two balls (each with a known colour, let’s say red and blue) into two separate boxes. If you open one box and find a red ball, you immediately know that the other box contains a blue ball. This is a correlation, but not entanglement, because the states (that is, the colours) were determined from the start. The quantum entanglement simulation demonstrates that the states remain undetermined until a measurement is made.

A circuit simulating entanglement realised in the tinkercad.com virtual environment
© screenshot
A circuit simulating entanglement realised in the tinkercad.com virtual environment
Circuit diagram for simulating entanglement
© screenshot
Circuit diagram for simulating entanglement
Close search