Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@rmshaffer
Copy link
Contributor

@rmshaffer rmshaffer commented Jun 9, 2020

This PR adds support for jobName, shots, timeout, and poll parameters 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:

rmshaffer and others added 30 commits May 28, 2020 18:03
Co-authored-by: Chris Granade <chgranad@microsoft.com>
@rmshaffer rmshaffer changed the title Support jobName and shots parameters for IQ# Azure Quantum job execution Support jobName, shots, timeout, and pollingInterval parameters for IQ# Azure Quantum job execution Jun 9, 2020
@rmshaffer rmshaffer changed the title Support jobName, shots, timeout, and pollingInterval parameters for IQ# Azure Quantum job execution Support several parameters for IQ# Azure Quantum job execution Jun 9, 2020
@rmshaffer rmshaffer marked this pull request as ready for review June 9, 2020 17:46
Copy link
Contributor

@cgranade cgranade left a 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;
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Base automatically changed from rmshaffer/azure-encoders to feature/azure-client June 12, 2020 19:47
@rmshaffer rmshaffer merged commit 79cf9ca into feature/azure-client Jun 12, 2020
@rmshaffer rmshaffer deleted the rmshaffer/azure-jobsettings branch June 12, 2020 21:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants