Q# and the Quantum Development Kit

A purpose-built quantum language with strong tooling for algorithm design and resource estimation.

by Microsoft · Q# (its own language) with Python and Jupyter integration · Moderate · Open source (MIT per its repository; check) · reviewed December 2026

What it is

Q# is a programming language designed for quantum algorithms, and the Quantum Development Kit (QDK) is the tooling around it. You write operations in Q#, run them in a built-in simulator, and can estimate the resources they would need on a future error-corrected machine.

Microsoft’s current install guide uses a Python package and a VS Code extension. Older tutorials that use .NET commands and Microsoft.Quantum packages describe the previous toolchain.

  • Quantum programs are written in a language with types for qubits and results, not as Python objects.
  • Operations can be adjointed or controlled automatically.
  • Resource estimation is part of the toolkit.

Core ideas

Operation
A Q# subroutine that acts on qubits. Marking it as Adj lets you use its adjoint.
use statement
Allocates qubits that are released at the end of the block.
Result
The type of a measurement outcome, Zero or One.
Resource estimator
Estimates qubits and runtime for a program on a hypothetical fault-tolerant machine.

Install and first program

Install

VS Code extension: quantum.qsharp-lang-vscode
Python: pip install "qdk[jupyter]" (extras such as azure and qiskit exist)

Bell state

operation Main() : Result[] {
    use qs = Qubit[2];
    H(qs[0]);
    CNOT(qs[0], qs[1]);
    let results = MeasureEach(qs);
    ResetAll(qs);
    return results;
}

Run it from the editor. Results are Zero and One pairs, and the two values always match. Check the current QDK docs for how to run many shots from Python.

An operation with an automatic adjoint

operation ApplyThenUndo(q : Qubit) : Unit is Adj {
    H(q);
    T(q);
}

operation Main() : Result {
    use q = Qubit();
    ApplyThenUndo(q);
    Adjoint ApplyThenUndo(q);   // undoes it
    return MResetZ(q);          // always Zero
}

Declaring the operation with “is Adj” lets the compiler build its inverse. The qubit returns to its start, so the result is always Zero.

Strengths

  • →A language designed for quantum programs
  • →Automatic adjoint and controlled versions of operations
  • →Resource estimation for fault-tolerant planning
  • →Good learning material, including the Quantum Katas exercises
  • →VS Code tooling with debugging and visualisation

Weaknesses

  • →A new language to learn, apart from Python
  • →Smaller community than Qiskit
  • →Hardware access goes through Azure Quantum, which needs an Azure account
  • →Older tutorials describe a toolchain that has been replaced

Hardware access

Hardware is reached through Azure Quantum, which lists its providers in its documentation. Check Azure Quantum for the current providers, pricing and free credits.

Ecosystem

  • VS Code extension with debugger and circuit view
  • Python package for use in notebooks, with optional Azure and Qiskit extras
  • Azure Quantum for running on hardware
  • Quantum Katas for exercises

Choose it when

  • Fault-tolerant algorithm design and resource estimates
  • Learning with structured exercises
  • Developers who like a typed language
  • Azure-centred organisations

Look elsewhere when

  • Quantum machine learning
  • People who want only Python

Common pitfalls

  • Searching for old install commands gives the retired .NET workflow. Use the current QDK install page.
  • Measurement results are Result values, not Booleans, so compare with One or Zero.
  • Qubits must be reset or released correctly at the end of a block.
  • Q# runs in its own simulator, whose limits differ from other frameworks’.

A learning path

  1. Install the VS Code extension and create a .qs file.
  2. Run the Bell operation below in the simulator.
  3. Work through some Quantum Katas.
  4. Try the resource estimator on a small algorithm.

Ratings

Editorial ratings from 0 to 3, not benchmarks.

Beginner friendliness
2
Quantum machine learning
0
IBM hardware
0
Google hardware
0
Many hardware providers
2
GPU simulation
0
Circuit compilation
1
Fault-tolerant planning
3
Low-level control
2

Compared with others

Learn more on QuantumAtlas

Questions

Is Q# still maintained?

Microsoft’s current documentation describes a QDK with Q#, Python and Qiskit support. Check the repository for recent activity.

Can I use Q# from Python?

Yes. The QDK provides a Python package. Check its documentation for the exact API of your version.

Does Q# run on real hardware?

Yes, through Azure Quantum with an Azure account.

Sources

Frameworks change often. The official documentation is the final word on versions, devices and prices.