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

Enable Session to contain both primitive.run and backend.run #1180

Closed
merav-aharoni opened this issue Oct 30, 2023 · 0 comments · Fixed by #1203
Closed

Enable Session to contain both primitive.run and backend.run #1180

merav-aharoni opened this issue Oct 30, 2023 · 0 comments · Fixed by #1203
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@merav-aharoni
Copy link
Contributor

What is the expected feature or enhancement?
After the implementation of backend.run is complete, we would like to be able
to run both primitive.run and backend.run in a single session. See #1138.

Acceptance criteria
Be able to run something like:

backend = service.backend('ibmq_qasm_simulator')

with Session(service, backend=backend) as session:
    sampler = Sampler(session=session)
    
    job1 = sampler.run(bell)
    job2 = backend.run(bell) # this would not run in a session 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment