Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
beckykd committed Jan 31, 2025
1 parent 7267c7f commit d56e6ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
5 changes: 1 addition & 4 deletions docs/guides/run-jobs-batch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,12 @@ batch.close()
For a comprehensive overview of a batch's configuration and status, including its interactive and max TTL, use the `batch.details() method`.

``` python
from qiskit_ibm_runtime import QiskitRuntimeService, SamplerV2 as Sampler
from qiskit_ibm_runtime import QiskitRuntimeService, batch, SamplerV2 as Sampler

service = QiskitRuntimeService()
backend = service.least_busy(operational=True, simulator=False)

with Batch(backend=backend) as batch:
sampler = Sampler()
for partition in partitions:
job = sampler.run(partition)
print(batch.details())
```

Expand Down
6 changes: 0 additions & 6 deletions docs/guides/run-jobs-session.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ A session ends in the following circumstances:
* The session is manually closed. The session stops accepting new jobs but continues to run queued jobs with priority.
* If you use Session as a context manager, that is, `with Session()`, the session is automatically closed when the context ends (the same behavior as using `session.close()`).

<Admonition type = "note">
When a session ends, the QPU finishes running any job that is currently running.
</Admonition>

<span id="close"></span>
### Close a session

Expand Down Expand Up @@ -155,8 +151,6 @@ service = QiskitRuntimeService()
backend = service.least_busy(operational=True, simulator=False)

with Session(backend=backend) as session:
estimator = Estimator()
job = estimator.run([(circuit, observable)])
print(session.details())
```

Expand Down

0 comments on commit d56e6ee

Please sign in to comment.