-
Notifications
You must be signed in to change notification settings - Fork 55
Support several parameters for IQ# Azure Quantum job execution #161
Conversation
Co-authored-by: Chris Granade <chgranad@microsoft.com>
Co-authored-by: Chris Granade <chgranad@microsoft.com>
Co-authored-by: Chris Granade <chgranad@microsoft.com>
cgranade
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all makes sense, and looks like a nice improvement! I just had one question about future integration with the %config, but that was about it.
| /// The timeout determines how long the IQ# kernel will wait for the job to complete; | ||
| /// the Azure Quantum job itself will continue to execute until it is completed. | ||
| /// </remarks> | ||
| public int ExecutionTimeout { get; set; } = DefaultExecutionTimeoutInSeconds; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the plan for these two properties to connect up to %config, or will there be another way to set them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With these changes, the two properties can be set via timeout and poll parameters to the %azure.execute magic command. It’s worth discussing whether they should be on %config instead, but since they only apply to %azure.execute it seemed to make sense to put them here for now.
This PR adds support for
jobName,shots,timeout, andpollparameters when submitting Azure Quantum jobs from IQ#.It also unifies the submission and execution code paths, which had some duplication previously and otherwise would have required more duplication to add these parameters.
To complete before merging:
feature/azure-clientafter Auto-generate entry point for Azure job submission #156 and Add simple display encoders for CloudJob, TargetStatus, and Histogram #160 are merged.