Microsoft Dev Blogs

Integrated Hybrid Support in the Azure Quantum Development Kit

thumbnail

Table of Contents

  1. Introduction
  2. Integrated Hybrid Quantum Computing
  3. Working with Integrated Hybrid Quantum Computing
  4. Q# Compiler Guidance
  5. Give It a Try

Introduction

The Azure Quantum Development Kit now supports running hybrid quantum programs on hardware targets, enabling users to develop their hybrid quantum programs using Q# and the QDK. Integrated hybrid quantum computing allows classical computations to be performed while qubits are coherent, opening the door to a new generation of hybrid algorithms.

Integrated Hybrid Quantum Computing

Integrated hybrid quantum computing enables conditional execution of quantum gates based on measurement results, facilitating error correction and other advanced operations. It supports features like mid-circuit measurements, conditional gate execution, and real-time classical computations in quantum applications.

Working with Integrated Hybrid Quantum Computing

When working with a Q# program for integrated hybrid quantum computing, users can set the Q# target profile as QIR Adaptive RI. This allows for the use of familiar Q# constructs such as loops, integer computations, and conditional gate applications based on measurement results. The QDK provides design-time feedback to guide users on supported Q# patterns for the chosen quantum target.

Q# Compiler Guidance

The Q# compiler offers design-time feedback to inform users of unsupported Q# patterns for integrated hybrid targets. For example, dynamic Double values are not supported by certain profiles, and the compiler provides error messages to indicate such issues in the code.

Give It a Try

To experiment with the advanced capabilities of quantum devices, users can install the Azure Quantum Development Kit VS Code Extension or the qsharp Python package and start implementing their own quantum hybrid programs.