Skip to content

v1.13

Latest
Compare
Choose a tag to compare
@swernli swernli released this 31 Jan 18:45
515b087

We are excited to release v1.13 of the Azure Quantum Development Kit! Here are some highlights of features included in this month's release:

@Test Attribute and VS Code Test Explorer Integration

#2095 Introduced a new attribute, @Test, which identifies unit tests written in Q#. By integrating with the Text Explorer feature in VS Code, you can now explore, run, and review Q# unit test execution:
image
See the wiki page on Testing Q# Code in VS Code for more information.

"Q#: Add Project Reference" VS Code Command Enhancements

#2079 enhanced the VS Code command for adding references to a Q# project, available when editing a qsharp.json file:
image
When invoking the command, you'll now see a choice to either import from GitHub or search the currently opened workspace for other Q# projects. When choosing GitHub, you'll get a suggestion of known libraries and their available versions to choose from, and the corresponding external project reference snippet will automatically be added to your current qsharp.json:
image
image

More Python Interoperability for Callables

#2091 added more support for using Python functions that wrap Q# callables across our Python package APIs. This makes it easier to pass Python arguments into Q# for features like resource estimation with qsharp.estimate(), running multiple shots with qsharp.run(), compiling to QIR with qsharp.compile(), or generating circuits with qsharp.circuit():
image
For more information on using Q# callables directly in Python, see the Invoking Q# Callables from Python wiki page.

Adaptive Profile Floating-Point Computation Extension

#2078 added support for an additional QIR Adaptive profile extension: floating-point computation. By choosing QIR Adaptive RIF as your compilation profile, you can enable Reset, Integer computation, and Floating-point computation for code generation. This allows you to write programs where the values of variables with Q# type Double can be dyanmically calculated from measurement results at runtime, and the output QIR will include arithmetic and comparison instructions corresponding to your code, enabling even more adaptive algorithms.
image

Note that this profile extension must be supported by the target backend or runtime environment for the resulting code to execute. See the QIR specification section on Classical Computation extensions to the Adaptive profile for more details.

Other Notable Features and Fixes

New Contributors

Full Changelog: v1.12...v1.13