"Do you really believe the moon is only there when you look at it?" — Albert Einstein
This repository is the living digital companion to the textbook "AI in Quantum Technologies: Theory, Applications, Practice, and Society" (DaScient Press Ltd., 2026). It provides a hands‑on, code‑first journey through the rapidly evolving intersection of artificial intelligence and quantum science. Inside you will find:
- Interactive Jupyter Notebooks for all 24 chapters
- RESTful API exposing AI‑driven quantum tools
- Pre‑trained models for quantum control, error correction, material discovery, and more
- Curated benchmark datasets and evaluation suites
- Docker containers guaranteeing reproducible research environments
- Cloud deployment templates for AWS, GCP, and Azure
- Tutorials that bridge quantum computing frameworks (Qiskit, PennyLane, Cirq) with modern deep learning (PyTorch, JAX, TensorFlow)
# Clone the repository
git clone https://github.com/DaScient/ai-in-quantum.git
cd ai-in-quantum
# Create and activate conda environment
conda create -n ai-quantum python=3.11
conda activate ai-quantum
# Install the package with all quantum and ML dependencies
pip install -e .[all]
# Launch Jupyter Lab
jupyter labdocker-compose up -d
# API available at http://localhost:8000
# Jupyter at http://localhost:8888 (token: quantum)
# MLflow tracking server at http://localhost:5000The textbook is structured into eight parts, each building the conceptual and practical machinery required to apply AI across the quantum technology landscape. Every chapter includes a fully executable notebook that can be run locally or opened directly in Google Colab.
All chapters are then exported to a single
.docxfile for manuscript processing by DaScient Press, Ltd.
A production‑ready FastAPI service exposes state‑of‑the‑art AI models tailored to quantum science. The interactive documentation is available at /docs once the server is running.
| Endpoint | Method | Description |
|---|---|---|
/api/v1/quantum/state_tomography |
POST | Reconstruct quantum state from measurement outcomes |
/api/v1/quantum/process_tomography |
POST | Characterise unknown quantum processes |
/api/v1/quantum/optimal_control |
POST | Generate optimal pulse sequences for gate operations |
/api/v1/quantum/error_decode |
POST | Decode syndrome measurements for error correction |
/api/v1/quantum/circuit_optimize |
POST | Compress and optimise quantum circuit depth |
/api/v1/qchem/ground_state |
POST | Predict molecular ground state energies |
/api/v1/qchem/excited_states |
POST | Compute optical spectra using ML‑enhanced methods |
/api/v1/materials/crystal_generation |
POST | Inverse design of crystal structures with desired properties |
/api/v1/materials/superconductor |
POST | Predict superconducting critical temperatures |
/api/v1/qml/kernel |
POST | Compute quantum kernel matrices for classification |
/api/v1/qml/train |
POST | Train a hybrid quantum‑classical model |
/api/v1/crypto/key_rate |
POST | Estimate secret key rate for QKD protocols |
/api/v1/metrology/sensitivity |
POST | Optimise probe states for quantum sensing |
/api/v1/simulate/noise_model |
POST | Learn a device noise model from calibration data |
All models are hosted on Hugging Face under the dascient organisation. They can be loaded with a few lines of code using the transformers, pennylane, or torch ecosystems.
| Model | Description | Parameters | Download |
|---|---|---|---|
| Q‑BERT | Quantum‑adapted BERT for gate sequence tokenisation | 110M | Link |
| ErrorFormer | Transformer for surface code error decoding | 230M | Link |
| MolQNet | Molecular ground state prediction with SE(3) equivariance | 340M | Link |
| CrysDiff | Diffusion model for crystal structure generation | 450M | Link |
| Q‑GPT | Generative pre‑trained transformer for quantum circuit synthesis | 1.2B | Link |
| SensNet | Graph neural network for quantum sensor placement | 85M | Link |
| QKD‑Flow | Normalising flow for quantum channel parameter estimation | 175M | Link |
The repository includes ready‑to‑use dataloaders for the following curated datasets. All are pre‑processed and documented in the /datasets directory.
- Circuit & Compilation: QASMBench, Feynman, QUEKO, IBM Qiskit runtime workloads
- Quantum Control & Calibration: QDataSet (gate calibration), Q-CTRL Boulder Opal benchmarks
- Quantum Chemistry: QM9, ANI‑1, MD17, PubChemQC
- Materials: Materials Project, OQMD, JARVIS‑DFT, SuperCon
- Error Correction: Stim‑generated syndrome datasets, IBM hardware decoding traces
- Quantum Key Distribution: Waks‑Group QKD experimental traces, Qunetsim simulations
- Quantum Optics: Photonic Boson Sampling benchmarks, Perceval‑generated photon counts
In addition to the chapter notebooks, the /tutorials folder contains thematic learning paths that cut across multiple chapters:
- "From Bell States to Transformers" – A complete walk‑through of quantum state classification with deep learning.
- "Designing a Superconducting Qubit with AI" – Inverse design tutorial using a pre‑trained diffusion model.
- "Quantum Error Correction Decoder Challenge" – Build and submit your own ML decoder; leaderboard included.
- "Certified Quantum Randomness" – Verify quantum advantage with AI‑powered statistical tests.
- "Ethical Audit of a Quantum AI System" – Apply the textbook's ethics framework to a real API model.
We welcome contributions from the global quantum and AI communities. Please see CONTRIBUTING.md for detailed guidelines.
- Report bugs: Open a GitHub issue with a minimal reproducible example.
- Suggest features: Use the feature request template.
- Submit code: Fork → branch → pull request. All code must include tests and pass CI.
- Improve documentation: Edit files in
/docs/source/and submit a PR. - Add a dataset or model: Follow the
integration_guide.mdin the/contribfolder.
We are especially interested in contributions that:
- Add support for new quantum backends (IonQ, Rigetti, QuEra, etc.)
- Provide multi‑lingual notebook translations
- Expand the ethical auditing framework
@book{tadaya2026aiquantum,
title = {AI in Quantum Technologies: Theory, Applications, Practice, and Society},
author = {Tadaya, Don D.M.},
year = {2026},
publisher = {DaScient Press},
series = {DaScient Intelligence Academy Textbook Series},
library_no = {178847474773666374859402992856},
isbn = {TBD}
}This work is licensed under a Creative Commons Attribution‑NonCommercial‑ShareAlike 4.0 International License. You are free to share and adapt the material under the same terms, provided you give appropriate credit. Commercial licensing (e.g., for corporate training, proprietary product integration) is available — please contact commercial@dascient.com.
- DaScient Intelligence Academy for conceiving the textbook and open‑source initiative.
- IBM Quantum, Google Quantum AI, Xanadu, and QuEra for providing hardware access and simulators used in the notebooks.
- Qiskit, PennyLane, and Cirq communities for outstanding software ecosystems.
- Hugging Face for hosting all pre‑trained models.
- Contributors: Over 30 quantum physicists, ML engineers, and educators who refined the manuscripts and code.
- Technical Support: support@dascient.com
- API Access: quantumapi@dascient.com
- Textbook & Academic Inquiries: press@dascient.com
- LinkedIn: https://linkedin.com/company/DaScient