%azure.output
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
Displays results for a job in the current Azure Quantum workspace.
Description
This magic command allows for displaying results for a job in the current Azure Quantum workspace. The job execution must already be completed in order to display results.
The Azure Quantum workspace must have been previously initialized
using the %azure.connect
magic command.
Optional parameters
- The job ID for which to display results. If not specified, the job ID from
the most recent call to
%azure.submit
or%azure.execute
will be used.
Possible errors
NotConnected
: Not connected to any Azure Quantum workspace.JobNotFound
: No job with the given ID was found in the current Azure Quantum workspace.JobNotCompleted
: The specified Azure Quantum job has not yet completed.JobOutputDownloadFailed
: Failed to download results for the specified Azure Quantum job.JobFailedOrCancelled
: The specified Azure Quantum job failed or was cancelled.
Examples for %azure.output
Example 1
Get results of a specific job:
In []: %azure.output JOB_ID
Out[]: <detailed results of specified job>
Example 2
Get results of the most recently submitted job:
In []: %azure.output
Out[]: <detailed results of most recently submitted job>
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for