Skip to main content Explore View all products (200+) Microsoft Foundry Azure Copilot GitHub Copilot Azure Kubernetes Service (AKS) Azure Cosmos DB Azure Database for PostgreSQL Azure Arc Microsoft Fabric Linux virtual machines in Azure Foundry Models Foundry Agent Service Foundry IQ Foundry Tools Foundry Control Plane Observability in Foundry Control Plane Azure OpenAI in Foundry Models Azure Speech in Foundry Tools Azure Machine Learning View all databases Azure Cosmos DB Azure DocumentDB Azure SQL Azure Database for PostgreSQL Azure Managed Redis Microsoft Fabric Azure Databricks Linux virtual machines in Azure Windows Server on Azure Azure Functions Azure Virtual Machine Scale Sets Azure API Management Azure Container Apps Azure Kubernetes Service (AKS) Azure Kubernetes Fleet Manager Azure Container Registry Azure Red Hat OpenShift Azure Container Instances Azure Container Storage Azure Arc Azure Local Microsoft Defender for Cloud Azure Monitor Microsoft Sentinel Azure Migrate View all solutions (40+) Cloud solutions for small and medium businesses Cloud migration and modernization center Data analytics for AI Azure Databases AI apps and agents Microsoft Marketplace Microsoft Sovereign Cloud AI apps and agents Responsible AI with Azure AI Infrastructure Data analytics for AI Machine learning operations (MLOps) Low-code application development on Azure Integration Services Serverless computing DevOps Migration and modernization center .NET apps migration Databases on Azure Linux on Azure Oracle on Azure SAP on the Microsoft Cloud Adaptive cloud High-performance computing (HPC) Infrastructure as a service (IaaS) Resiliency Azure Essentials Frontier Accelerate for Azure FinOps on Azure Microsoft Marketplace Azure pricing overview Create an Azure account Free Azure services Flexible purchase options Pricing calculator FinOps on Azure Maximize ROI from AI Azure savings plans Azure reservations Azure Hybrid Benefit Virtual Machines Azure SQL Microsoft Foundry Microsoft Fabric Azure Kubernetes Service (AKS) Microsoft Defender for Cloud View more Software Development Companies Microsoft Marketplace Find a partner Resources for Azure partners Get started with Azure Customer stories Analyst reports, white papers, and e-books Videos Learn more about cloud computing Documentation Explore Azure portal Developer resources Quickstart templates Resources for startups Developer community Students Azure for partners Blog Events and Webinars Learn Support Contact Sales Get started with Azure Sign in
Resource estimates of quantum algorithms simulating various molecules, obtained using the Quantum Development Kit Tracer resource estimator
4 min read

Simulating nature with the new Microsoft Quantum Development Kit chemistry library

Quantum computers have the potential to solve the world’s hardest computational problems and alter the economic, industrial, academic, and societal landscape. In just hours or days, a quantum computer can solve complex problems that would otherwise take billions of years to solve.

To unlock these potential applications, the Microsoft Quantum Development Kit includes a new chemistry library that allows chemists to simulate molecular interactions and explore quantum algorithms for real-world applications in the chemistry domain. Features included in the library are state-of-the-art Q# implementations of methods for Hamiltonian simulation – including Trotterization and Qubitization techniques – state preparation techniques, and samples to help chemists to get started quickly.

For example, the 100-year-old Haber-Bosch process, a key industrial process to create artificial fertilizers, might be improved using computational chemistry methods that are enhanced by quantum computing. That could improve the catalytic process for creating ammonia from atmospheric nitrogen, a process that currently requires high temperatures, high pressures, and carefully selected catalysts. This process is so heat- and pressure-intensive that it consumes upwards of two percent of the world’s natural energy sources. Using quantum algorithms such as those supported by the Microsoft Quantum chemistry library, scientists can learn from nature’s natural process of nitrogen fixation how to achieve this task at lower pressures and temperatures.

Microsoft Quantum & Pacific Northwest Laboratory collaboration

The Microsoft Quantum Development Kit chemistry library was developed in collaboration with Pacific Northwest National Laboratory (PNNL), a leader in both chemistry and data analytics. The chemistry library – working with PNNL’s NWChem, an open-source, high-performance computational chemistry tool developed by the U.S. Department of Energy’s Office of Science – enables quantum solutions to solve computationally complex chemistry problems.

“Quantum computing has the potential to help us answer our questions much, much faster with much higher accuracy.”  Wendy Shaw, Director, Physical Sciences Division, Pacific Northwest National Laboratory

Tackling hard computational chemistry problems using the quantum chemistry library

To get started in quantum chemistry simulations, the chemistry library offers features such as:

  • State-of-the-art Hamiltonian simulation methods: Two main methods are supported, Trotterization and Qubitization.
    • Trotterization uses the fact that fast alternation of time-slices converges to the given Hamiltonian. This typically leads to quantum circuits that implement the time evolution with a low number of qubits by cycling through all terms that are present in the given Hamiltonian in a sequential way and in a prescribed order.
    • Qubitization is a technique that allows to perform an estimation of energies by way of implementing a linear combination of operators. This typically has a slightly higher cost in terms of qubits compared to Trotterization but can lead to substantially lower circuit size and circuit depth, depending on the chemistry problem at hand. A crucial part of Qubitization quantum algorithms are state-preparation techniques, which are provided as part of this release.
  • Estimation of ground and excited state energies. The chemistry library enables the estimates of ground state and excited state energies as a function of bond distance. Many real-world chemistry problems involve not only estimates of ground state energies but also the understanding of the dynamics of the various transitions between excited states and a characterization of their energy levels. This type of problems can be studied with the new chemistry library as well.

As an example, the figure below shows the results of one of the samples that uses the data from NWChem. It graphically shows the equilibrium bonding distance of Lithium Hydride for various distances and energy levels.

a screenshot of a cell phone
Estimating the ground and excited state energies for equilibrium bonding distance of Lithium Hydride, an inorganic compound with chemical formula LiH.
  • Automatic resource estimation. The Trace simulator that is part of the Quantum Development Kit allows chemists to estimate important metrics about quantum algorithms, such as the number of qubits, the total gate count for various types of primitive gates, and the total circuit depth. Shown below is the output of the GetGateCount sample that is shipped with the library and which computes a variety of useful metrics for various molecular benchmarks that are provided as part of the library.
Resource estimates of quantum algorithms simulating various molecules, obtained using the Quantum Development Kit Tracer resource estimator.
Resource estimates of quantum algorithms simulating various molecules, obtained using the Quantum Development Kit Tracer resource estimator.
  • Interface to powerful chemistry modeling tools. The release introduces an open source YAML-based schema called Broombridge (in reference to a landmark celebrated as a birthplace of Hamiltonians), to make it easy for a chemist to input real-world chemistry models into Q#. Broombridge is a structured, extensible, and human-readable and human-editable way of representing electronic structure problems.  Learn more about the schema.
  • Samples: The chemistry library contains several benchmark samples molecules using the to help programmers and chemist simulate molecules and chemical interactions. Some examples:
    • Beta-Carotine: this is a benchmark to study the most common form of carotene in plants and oxidative damage; an ideal candidate for singlet fission processes.
    • C20: this benchmark studies C20 systems often used to calibrate various electron correlation effects.
    • Ozone: this benchmark to study quantum mechanical excited-state studies of the Ozone and an understanding its role in Earth atmosphere.
  • Real-world chemistry modeling in NWChem. The chemistry library interfaces with NWChem, a high-performance computational chemistry software package. There are several ways to explore the interplay between NWChem and the Q# quantum chemistry library, including:
    • Try out the sample molecules listed above that have been generated by NWChem and are already a part of the Quantum Development Kit Samples.
    • Use EMSL Arrows Builder for the Microsoft Quantum Development Kit – a web-based frontend to NWChem – to generate new Broombridge-formatted molecular input files
    • Use the Docker image, provided by PNNL to run NWChem and generate your own molecule models

You can learn more about the chemistry library by exploring the documentation, including a set of conceptual documentation to describe basic principles of quantum chemistry, its mapping to a quantum computer, and the API documentation.

Today, developers and chemists around the world can begin exploring the Microsoft Quantum Development Kit and experiencing the world of quantum computing.  Resources such as the chemistry library will enable problem-solvers in the computational chemistry domain to explore the world of quantum. We’re excited to help our growing community take another step toward the new world of quantum computing.