Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qiskit runtime support #6

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Qiskit runtime support #6

wants to merge 6 commits into from

Conversation

ejwilson3
Copy link

Adds runtime session option to get results that only have to wait in the queue once.
Things to note:
When using runtime, result.qubits and result.depth will always report 0, as the runtime sampler does not store circuits like the backendsampler does.
Sending a runtime backend into the solver when not using the runtime option, it will change it into a provider backend for the backendsampler instead of creating a runtime sampler.
Had a weird issue with commits; if we're trying to keep the commit history especially clean I can see if I can go back and mess around with them.

@ejwilson3
Copy link
Author

Added the failure on mixing backend types starting at line 133 of qiskit.py.

raise ValueError('Qiskit Runtime Backend %s supplied without '
'corresponding Qiskit Runtime Service object.'
'Please resubmit as a Runtime Sampler or'
'include a Service' % repr(backend)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SyntaxError: '(' was never closed

if runtime_service:
backend, options = _establish_runtime_backend(backend, runtime_service)
else:
sampler = _construct_backendsampler(backend, job_tags)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UnboundLocalError: local variable 'job_tags' referenced before assignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants