Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
QDK for chemistry (QDK/Chemistry) is an open-source toolkit in the Microsoft Quantum Development Kit (QDK). Use it to model molecules and materials, build quantum circuits, and evaluate quantum algorithms for chemistry and materials research.
QDK/Chemistry connects the stages of a quantum chemistry workflow, from classical data preparation to circuit execution and analysis. Its modular design lets you choose methods for each stage and combine them in a single workflow. You can use native methods or integrate external packages through plugins.
The following diagram shows how QDK/Chemistry maps a chemistry problem to a quantum computer.
Why use QDK for chemistry?
Compose and reuse workflows
Choose methods for each stage of your workflow. For example, compare self-consistent field (SCF) solvers, select dense or sparse state preparation, and choose standard or iterative quantum phase estimation. You can compare energy estimates and resource requirements, reuse intermediate data, and adapt the workflow to a different molecule or model.
Use resource-efficient algorithms
QDK/Chemistry combines classical processing with resource-efficient quantum algorithms. Classical processing steps, such as active space selection and Hamiltonian factorization, reduce the size of a molecular model and provide a compact Hamiltonian representation. Quantum algorithms, such as sparse-isometry state preparation and sum-of-squares spectral amplification (SOSSA) block encoding, reduce the quantum operations needed to prepare wavefunctions and simulate Hamiltonians.
Work with familiar tools
Build Python workflows in Jupyter Notebook, and use Visual Studio Code (VS Code) for quantum development. Plugins connect QDK/Chemistry to external chemistry and quantum tools. The toolkit also provides chemistry tools and guidance for AI-assisted workflows with GitHub Copilot.
QDK/Chemistry core features and technologies
| Task | What QDK/Chemistry provides |
|---|---|
| Compose workflows | Interchangeable methods, shared data structures, and plugins for external packages. |
| Prepare inputs with classical methods | SCF calculations, active space selection, and Hamiltonian factorization. |
| Build quantum algorithms | Sparse-isometry state preparation, SOSSA block encoding, and standard and iterative phase estimation. |
| Model molecules and materials | Molecular Hamiltonians alongside spin and fermionic lattice models. |
| Evaluate and run quantum circuits | Integration with the QDK resource estimator, supported simulators, and Azure Quantum hardware backends. |
To learn more about the electronic structure and state preparation steps, see Construct molecular orbitals with SCF calculations in QDK Chemistry and Use sparse isometry to efficiently generate simplified state preparation circuits for quantum chemistry calculations.
To learn how to evaluate quantum programs, see Overview of quantum simulators in the QDK and Introduction to the resource estimator.
QDK/Chemistry resources
- How to install QDK for chemistry: Set up the Python library in your environment.
- Quickstart: Complete a workflow from molecular structure to an energy estimate.
- Learn quantum chemistry with QDK Learning: Work through the ground state molecular energy course with Python notebooks and quantum phase estimation.
- SOSSA resource estimation example: Explore simulation and resource estimation for a spectral amplification workflow.
- Working with AI Assistants: Use chemistry tools and guidance with GitHub Copilot.
For detailed class and method documentation, see the Python API and C++ API references.