Skip to content

Commit

Permalink
Merge pull request #46 from QuEraComputing/example-fixes
Browse files Browse the repository at this point in the history
`submit` -> `run_async`
  • Loading branch information
johnzl-777 authored Jan 24, 2024
2 parents b097be2 + 2048f9d commit 9206c22
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pdm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Update dependencies

on:
schedule:
- cron: "0 0 * * *"

# See: https://github.com/pdm-project/pdm/issues/1879
env:
PDM_DEPS: 'urllib3<2'

jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Update dependencies
uses: pdm-project/update-deps-action@main
2 changes: 1 addition & 1 deletion docs/examples/example-2-multi-qubit-blockaded.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
filename = os.path.join(os.path.abspath(""), "data", "multi-qubit-blockaded-job.json")

if not os.path.isfile(filename):
hardware_batch = batch.parallelize(24).braket.aquila().submit(shots=100)
hardware_batch = batch.parallelize(24).braket.aquila().run_async(shots=100)
save(hardware_batch, filename)

# %% [markdown]
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/example-2-two-qubit-adiabatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
filename = os.path.join(os.path.abspath(""), "data", "two-qubit-adiabatic-job.json")

if not os.path.isfile(filename):
hardware_batch = batch.parallelize(24).braket.aquila().submit(shots=100)
hardware_batch = batch.parallelize(24).braket.aquila().run_async(shots=100)
save(hardware_batch, filename)


Expand Down
10 changes: 5 additions & 5 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies = [
"mkdocs-gen-files>=0.5.0",
"mkdocs-literate-nav>=0.6.0",
"mike>=1.1.2",
"bloqade>=0.3.1",
"bloqade>=0.15.4",
"numpy>=1.25.2",
"matplotlib>=3.8.0",
"neoteroi-mkdocs>=1.0.4",
Expand Down

0 comments on commit 9206c22

Please sign in to comment.