
The Quantum Machine Learning (QML) Playground is an interactive web application designed to visualize and explore the inner workings of quantum machine learning models in an intuitive and educational way. Inspired by classical tools like TensorFlow Playground, it focuses on parameterized quantum circuits (PQCs) — particularly the data re-uploading universal quantum classifier — and introduces visual metaphors such as Bloch spheres and the Q-simplex to interpret quantum state evolution.
Now extended beyond classification, the playground also supports regression tasks, uncertainty quantification, and regularization techniques, enabling deeper exploration of quantum model performance and generalization.
This playground is ideal for learners, educators, and researchers who want to explore QML models without requiring deep expertise in quantum hardware or simulators.

Explore the QML Playground directly in your browser:
No installation required — perfect for quick experimentation, education, and outreach.
The playground demonstrates the data re-uploading variational quantum model, a flexible architecture introduced by Pérez-Salinas et al. (Quantum, 2020). This architecture repeatedly embeds classical features into quantum states using trainable gates, mimicking the depth and expressivity of classical neural networks.
Originally designed for classification, it now also supports quantum regression, expanding its educational and research potential.
This model was chosen because it is:
requirements.txt# 1. Clone this repository
git clone https://github.com/fraunhofer-aisec/qml-playground
cd qml-playground
# 2. Set up virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
python app_dev.py
Then visit: http://127.0.0.1:8050/
Pull the latest Docker image from the GitHub Container Registry:
docker pull ghcr.io/fraunhofer-aisec/qml-playground:latest
docker-compose up -d # Start container
docker-compose down # Stop container
If you use this tool in your research or presentations, please cite:
P. Debus, S. Issel, and K. Tscharke, "Quantum Machine Learning Playground," IEEE Computer Graphics and Applications, vol. 44, no. 05, pp. 40–53, Sept.–Oct. 2024. DOI: 10.1109/MCG.2024.3456288
The arXiv version of this paper is available here: 2507.17931
Developed and maintained by Pascal Debus, Quantum Security Technologies (QST), Fraunhofer AISEC.
If you find this work useful, feel free to connect or reach out for collaboration opportunities!
$ claude mcp add qml-playground \
-- python -m otcore.mcp_server <graph>