jupyter | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
These samples demonstrate the use of Q# and the Quantum Development Kit for a variety of different quantum computing tasks.
Many samples can be used directly in your browser using either Q# on its own, or Q# together with Python. Alternatively, you can create a new command line terminal to run most Q# standalone samples, as well as samples that demonstrate how to use Q# together with Python or .NET.
A small number of the samples have additional installation requirements beyond those for the rest of the Quantum Development Kit. These are noted in the README.md files for each sample, along with complete installation instructions.
Sample | Run in browser... | Run at command line... | |||
---|---|---|---|---|---|
Getting started: | Intro to IQ# | Q# notebook | |||
Measurement | Q# standalone | ||||
Quantum random number generator | Q# standalone | ||||
Simple quantum algorithms | Q# standalone | ||||
Teleportation | Q# standalone | ||||
Algorithms: | CHSH Game | Q# + Python | Q# + .NET | ||
Database Search | Q# notebook | Q# + Python | Q# + .NET | ||
Integer factorization | Q# + Python | Q# + .NET | |||
Oracle synthesis | Q# standalone | ||||
Order finding | Q# standalone | ||||
Repeat-Until-Success (RUS) | Q# standalone | ||||
Reversible Logic Synthesis | Q# + Python | Q# standalone | |||
Simple Grover's Algorithm | Q# standalone | ||||
Arithmetic: | Adder | Q# notebook | |||
Azure Quantum service: | Grover's search | Q# standalone | |||
Hidden shift | Q# standalone | ||||
Parallel QRNG | Q# notebook | Q# + Python | Q# standalone | ||
Ising model simulation | Q# standalone | ||||
Teleportation | Q# standalone | ||||
Characterization: | Bayesian Phase Estimation | Q# standalone | |||
Chemistry: | Hamiltonian analysis | Q# + Python | Q# + .NET | ||
Hubbard model (data model) | Q# + .NET | ||||
Hubbard model (simulation) | Q# + .NET | ||||
Gate counting | Q# + .NET / PowerShell | ||||
LiH (GUI) | Q# + .NET / Electron | ||||
Molecular hydrogen (command-line) | Q# + .NET | ||||
Molecular hydrogen (GUI) | Q# + .NET / Electron | ||||
Simulation (GUI) | Q# + .NET | ||||
Python interoperability | Q# + Python | ||||
Characterization: | Bayesian Phase Estimation | Q# standalone | |||
Diagnostics: | Dumping states and operations | Q# notebook | |||
Facts and assertions | Q# notebook | ||||
Unit testing | Q# + .NET | ||||
Visualizing quantum programs | Q# notebook | ||||
Error correction: | Bit flip code | Q# standalone | |||
Interoperability: | Python | Q# + Python | |||
.NET | Q# + .NET | ||||
Machine learning: | Half moons (serial) | Q# + Python | Q# + .NET | ||
Half moons (parallel) | Q# + .NET | ||||
Half moons (parallel) | Q# + Python | Q# + .NET | |||
Numerics: | Custom modular addition | Q# standalone | |||
Evaluating functions | Q# standalone | ||||
Resource counting | Q# notebook | Q# standalone | |||
Runtime: | Oracle emulation | Q# + .NET | |||
⟨q|pic⟩ simulator | Q# + .NET | ||||
Reversible simulator (simple) | Q# + .NET | ||||
Reversible simulator (advanced) | Q# + .NET | ||||
Simulator w/ overrides | Q# + .NET | ||||
State visualizer | Q# + .NET | ||||
Quantum simulation: | H₂ (command-line) | Q# + Python | Q# + .NET | ||
H₂ (GUI) | Q# + .NET / Electron | ||||
Hubbard model | Q# standalone | ||||
Ising model (simple) | Q# standalone | ||||
Ising model (generators) | Q# + .NET | ||||
Ising model (adiabatic) | Q# + .NET | ||||
Ising model (phase estimation) | Q# + .NET | ||||
Ising model (Trotter–Suzuki) | Q# + .NET | ||||
Gaussian state preparation | Q# + Python | Q# Standalone |