Quantum Playground

1 language
  • Article
  • Read
From Wikipedia, the free encyclopedia
This article is about the interactive demo. For the search engine that hosts it, see David's Internet.
Quantum Playground
TypeInteractive demo
OriginDTU course 10384, Quantum Information
DeveloperDavid
Written inTypeScript, three.js, NumPy fixtures
TestsState-vector simulator tested against NumPy fixtures from the course solutions
Built withA from-scratch TypeScript simulator of the DTU Quantum Information arc
Hosted onDavid-Internet/demos/quantum
Websitehttps://david-internet.vercel.app/demos/quantum

Quantum Playground is an interactive state-vector simulator based on the Quantum Information course at the Technical University of Denmark. It supports one to five qubits and renders the course algorithms in a browser.[1]

The demonstration includes a three.js Bloch sphere, a circuit builder, and visualizations for Deutsch-Jozsa, Bernstein-Vazirani, Simon's algorithm, and Grover's algorithm.

Overview

The Bloch-sphere panel represents single-qubit gates as rotations. In the circuit builder, amplitude bars change as a playhead moves across two- and three-qubit circuits, and measurement can run repeated shots.

Quantum algorithms

Simon's panel pairs inputs with a hidden string and sends measured equations to a GF(2) solver. Grover reflects every amplitude about the mean after its oracle marks a result, showing the rise and later over-rotation of the selected state's probability.

Development

The simulator was written in TypeScript from the DTU course arc. Its state vectors, algorithm distributions, Bloch vectors, and Grover probability curves are tested against NumPy fixtures from course solutions. State-vector simulator tested against NumPy fixtures from the course solutions.

See also

References

  1. ^ content/quantum/README.md, David's Internet.