Skip to content

Commit

Permalink
Added clarification regarding job mode in V2 (Qiskit#1562)
Browse files Browse the repository at this point in the history
Closes Qiskit#1486

added a note at https://docs.quantum.ibm.com/run/run-jobs-batch

---------

Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk>
  • Loading branch information
arujjval and frankharkins authored Jun 19, 2024
1 parent 57bae8e commit c18a06d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/run/run-jobs-batch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ The following example shows how you can partition a long list of circuits into m
job = sampler.run(partitioned_circuits)
jobs.append(job)
```


<Admonition type="caution">
If you set `backend=backend` in a V2 primitive it will run the program in job mode, even if it's inside a batch/session context. Avoid setting the backend parameter if you want to run in batch/session mode.
</Admonition>

0 comments on commit c18a06d

Please sign in to comment.