How microsoft/quantumkatas works
Quantum Katas is a collection of self-paced Q# tutorials and programming exercises, organized from foundational mathematics and quantum concepts through algorithms and applications. A learner studies a topic, works through progressively harder tasks, and checks a Q# answer against a task test; the notebook magic compiles and simulates submissions. The repository also includes reference-checking, visualization, and quantum-resource utilities. The graph combines README-documented curriculum capabilities with sampled runtime code; unsampled kata internals are represented at their documented directory level.
Main entry points: KataMagic.cs %kata command · CounterSimulator.cs Counter simulator · CheckKataMagic.cs Reference checker · BooleanMatrix.cs Simon matrix
Components 21
Quantum foundations
- Math tutorials
tutorials/ComplexArithmetic - Linear algebra
tutorials/LinearAlgebra - Qubits and gates
tutorials/Qubit - Gate lessons
BasicGates - Measurements
Measurements
Algorithms
- Simple protocols
Teleportation - Oracle algorithms
DeutschJozsaAlgorithm - Grover search
GroversAlgorithm - Fourier and phase
QFT
Applications
- Reversible computing
TruthTables - Entanglement games
CHSHGame - Quantum networks
KeyDistribution_BB84 - Error correction
QEC_BitFlipCode - Quantum classification
tutorials/QuantumClassification
Learning runtime
- %kata command
utilities/Microsoft.Quantum.Katas/KataMagic.cs - Reference checker
utilities/Microsoft.Quantum.Katas/CheckKataMagic.cs - Counter simulator
utilities/Common/CounterSimulator.cs
Quantum utilities
- Simon matrix
SimonsAlgorithm/BooleanMatrix.cs - Kernel solver
SimonsAlgorithm/GaussianElimination.cs - Unitary dumper
utilities/DumpUnitary/Driver.cs
Other components
- Learner
Connections 18
- Learner → Math tutorials: studies
README.md - Learner → Linear algebra: studies
README.md - Learner → Qubits and gates: studies
README.md - Learner → Gate lessons: practices
README.md - Learner → Measurements: practices
README.md - Learner → Simple protocols: implements
README.md - Learner → Oracle algorithms: implements
README.md - Learner → Grover search: explores
README.md - Learner → Fourier and phase: studies
README.md - Learner → Reversible computing: practices
README.md - Learner → Entanglement games: plays
README.md - Learner → Quantum networks: implements
README.md - Learner → Error correction: studies
README.md - Learner → Quantum classification: explores
README.md - Learner → %kata command: submits answer
- %kata command → Counter simulator: creates
utilities/Microsoft.Quantum.Katas/KataMagic.cs - Reference checker → Counter simulator: creates
utilities/Microsoft.Quantum.Katas/CheckKataMagic.cs - Simon matrix → Kernel solver: solves kernel
SimonsAlgorithm/BooleanMatrix.cs