%azure.target-capability

Warning

This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.

The Modern QDK only supports the '%%qsharp' magic command.

Summary

Sets or displays the active target capability level for compiling Q# functions and operations.

Description

This magic command allows for specifying or displaying the active target capability level for Q# job submission in an Azure Quantum workspace.

Optional parameters

  • The target ID to set as the active execution target for Q# job submission. If not specified, the currently active execution target is displayed.

Examples for %azure.target-capability

Example 1

Sets the current target capability to full computation (no restrictions), if allowed by the current execution target.

In []: %azure.target-capability FullComputation

Example 2

Displays the current target capability level.

In []: %azure.target-capability

Example 3

Resets the current target capability level to either the maximum supported by the current execution target, or to full computation if no execution target is currently set.

In []: %azure.target-capability --clear