From de31c9ef519d692a78aa7a1af98b14690057db81 Mon Sep 17 00:00:00 2001 From: Phillip Weinberg Date: Wed, 24 Jan 2024 09:58:32 -0500 Subject: [PATCH 1/4] `submit` -> `run_async` --- docs/examples/example-2-two-qubit-adiabatic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/example-2-two-qubit-adiabatic.py b/docs/examples/example-2-two-qubit-adiabatic.py index f910ea7..ff990de 100644 --- a/docs/examples/example-2-two-qubit-adiabatic.py +++ b/docs/examples/example-2-two-qubit-adiabatic.py @@ -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) From d5eb679bf4f1297081e96320fd5a6746d09998fc Mon Sep 17 00:00:00 2001 From: Phillip Weinberg Date: Wed, 24 Jan 2024 10:02:14 -0500 Subject: [PATCH 2/4] `submit` -> `run_async` --- docs/examples/example-2-multi-qubit-blockaded.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/example-2-multi-qubit-blockaded.py b/docs/examples/example-2-multi-qubit-blockaded.py index 6741380..3a66a26 100644 --- a/docs/examples/example-2-multi-qubit-blockaded.py +++ b/docs/examples/example-2-multi-qubit-blockaded.py @@ -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] From 9c3d4fb4b87233ec0cb8c22a71c174e8fd2e7ad8 Mon Sep 17 00:00:00 2001 From: Phillip Weinberg Date: Wed, 24 Jan 2024 10:03:33 -0500 Subject: [PATCH 3/4] bump bloqade. --- pdm.lock | 10 +++++----- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pdm.lock b/pdm.lock index 967ab06..a4df794 100644 --- a/pdm.lock +++ b/pdm.lock @@ -4,8 +4,8 @@ [metadata] groups = ["default", "dev"] strategy = ["cross_platform"] -lock_version = "4.4" -content_hash = "sha256:77edcd78f03bbdb54cbf8a0ffcab66625d062ebbed66edcd26f15c71997849dd" +lock_version = "4.4.1" +content_hash = "sha256:0a1a579ec352c285d6183684e152f6f72cc4b77a4d59d9587604803e3e720ad0" [[package]] name = "amazon-braket-default-simulator" @@ -279,7 +279,7 @@ files = [ [[package]] name = "bloqade" -version = "0.13.0" +version = "0.15.4" requires_python = "<3.12,>=3.9" summary = "Neutral atom software development kit" dependencies = [ @@ -299,8 +299,8 @@ dependencies = [ "tabulate>=0.9.0", ] files = [ - {file = "bloqade-0.13.0-py3-none-any.whl", hash = "sha256:237e1ef1057d96d6bab148e709ef0d140187778a701629a607bfc663ecf7c5d4"}, - {file = "bloqade-0.13.0.tar.gz", hash = "sha256:0c7fa1318eb651efe572d5ec485a071a3fd958b8a5f3cf6bc04fbad44316d572"}, + {file = "bloqade-0.15.4-py3-none-any.whl", hash = "sha256:c7bdd169509e9f2a1abe8335bb719faaf57ca0b182248fb646c9fe254aa363e0"}, + {file = "bloqade-0.15.4.tar.gz", hash = "sha256:c7df2121e96732177928498aa7e748b6c66a7412b8c4f2f48f2c9088a1109881"}, ] [[package]] diff --git a/pyproject.toml b/pyproject.toml index cd7b375..da19a19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", From 2048f9d507bcad119c283bf482fa33e0f6882483 Mon Sep 17 00:00:00 2001 From: Phillip Weinberg Date: Wed, 24 Jan 2024 10:05:16 -0500 Subject: [PATCH 4/4] add workflow to update dependencies. --- .github/workflows/pdm.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/pdm.yml diff --git a/.github/workflows/pdm.yml b/.github/workflows/pdm.yml new file mode 100644 index 0000000..c582963 --- /dev/null +++ b/.github/workflows/pdm.yml @@ -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