Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
The Microsoft Quantum Development Kit (QDK) supports multiple quantum programming languages, frameworks, and circuit formats through the QDK extension for Visual Studio Code (VS Code) and the QDK Python package. With the QDK, you can use one or more programming frameworks in your development workflow and submit supported programs to Azure Quantum.
Language support in the QDK extension for VS Code
The QDK extension for VS Code directly supports development in the Q# and OpenQASM quantum programming languages. When you open a Q# .qs file or OpenQASM .qasm file in VS Code, you can use QDK features such as resource estimation, circuit visualization, and job submission to Azure Quantum provider targets. You can also use VS Code features such as code completion, IntelliSense, and debugging.
The QDK extension also provides syntax highlighting for Stim .stim files. To compile and simulate Stim circuits, use the qdk.stim module in the QDK Python package.
The VS Code extension includes the QDK circuit editor, a graphical interface for building quantum circuits that you can use in Q# programs.
Language support in the QDK Python package
The QDK Python package supports development with the following quantum programming languages, frameworks, and circuit formats:
- Q#
- OpenQASM
- Qiskit
- Cirq
- Stim
- PennyLane
The QDK package includes modules that let you:
- Use Jupyter Notebook features, such as visualization tools and a magic command to write Q# code.
- Convert Q# and OpenQASM structs and callables into Python objects for use in other languages and frameworks.
- Connect to your Azure Quantum workspace and submit supported programs.
Compare QDK language options
The following table compares the availability of languages, frameworks, and circuit formats in the QDK extension and Python package.
| Language, framework, or format | QDK VS Code extension | QDK Python package |
|---|---|---|
| Q# | Directly available | Available through the qdk.qsharp module and the %%qsharp magic command |
| OpenQASM | Directly available | Available through the qdk.openqasm module |
| Qiskit | Not available | Available through the qdk.qiskit module |
| Cirq | Not available | Available through the qdk.cirq module |
| PennyLane | Not available | Available through conversion to QIR |
| Stim | Syntax highlighting | Available through the qdk.stim module |
Next steps
To get started with the quantum programming languages, frameworks, and circuit formats in the QDK, install the QDK extension for VS Code and the QDK Python package. For more information, see Set up the QDK.
To submit quantum programs to Azure Quantum, see the following guides: