%azure.output
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](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.connect.
Optional parameters
- The job ID for which to display results. If not specified, the job ID from
the most recent call to [
%azure.submit](https://docs.microsoft.com/qsharp/api/iqsharp-magic/azure.submit or [%azure.execute](https://docs.microsoft.com/qsharp/api/iqsharp-magic/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>
反馈
提交和查看相关反馈