Skip to content

Commit 70ca5ab

Browse files
andrijapaualbi3roJerryChen97actions-userSimoneGasperini
authored
merge dev into master for v0.43.0 release (#1573)
Following the release guide, > Create a new branch from dev, and open a PR to merge the new branch into master. Once merged in, ensure that master subsequently builds successfully. This merges all changes from `dev` that occured for the release of `v0.43.0` PL ecosystem. PR is a follow up to #1572 where we updated dependencies in `dev`. This PR was created with, - Make branch after pulling latest `dev` - Create PR targeting master ⚠️ Manually updated the `constraints-stable.txt` to match the `constraints-dev.txt` so that they build correctly. Also had to manually update all of the metadata so that the date of last modification is today. ⚠️ This branch was tested against all demos here: https://github.com/PennyLaneAI/qml/actions/runs/18546834983 --------- Co-authored-by: Christina Lee <chrissie.c.l@gmail.com> Co-authored-by: Yushao Chen (Jerry) <chenys13@outlook.com> Co-authored-by: GitHub Nightly Merge Action <actions@github.com> Co-authored-by: Simone Gasperini <simone.gasperini4@unibo.it> Co-authored-by: Alex Preciado <alex.preciado@xanadu.ai> Co-authored-by: Alan Martin <alan.martin@xanadu.ai> Co-authored-by: Alan Martin <53958929+Alan-eMartin@users.noreply.github.com> Co-authored-by: Isaac De Vlugt <isaacdevlugt@gmail.com> Co-authored-by: Isaac De Vlugt <34751083+isaacdevlugt@users.noreply.github.com> Co-authored-by: Paul Finlay <50180049+doctorperceptron@users.noreply.github.com>
1 parent 0250368 commit 70ca5ab

146 files changed

Lines changed: 1410 additions & 1216 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/v2-build-demos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ jobs:
176176
- name: Setup Python
177177
uses: actions/setup-python@v4
178178
with:
179-
python-version: '3.10'
179+
python-version: '3.11'
180180

181181
- name: Install dependencies
182182
run: pip install . && poetry config warnings.export false
183-
183+
184184
- name: Make demo name list
185185
id: demo-name-list
186186
run: printf "demo-names=%s" "$(jq -nc '${{ needs.generate-build-variables.outputs.chunk-array }}[${{ matrix.chunk-index }}][]' | tr -s '\n"' ' ')" >> $GITHUB_OUTPUT

.github/workflows/v2-deploy-demos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Setup Python
5959
uses: actions/setup-python@v4
6060
with:
61-
python-version: '3.10'
61+
python-version: '3.11'
6262

6363
- name: Install python requirements
6464
run: pip install -r .github/workflows/qml_pipeline_v2/requirements.txt

.github/workflows/v2-deploy-pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ jobs:
107107
comment="### Your preview is ready :tada:!\n\n"
108108
comment+="You can view your changes [here](https://pennylane.ai/qml/demonstrations?pr=${{ needs.prepare-build-context.outputs.pr_id }})\n\n"
109109
110+
comment+="> Deployed at: $(date +'%Y-%m-%d %H:%M:%S') UTC\n\n"
111+
110112
echo "markdown=$comment" >> $GITHUB_OUTPUT
111113
112114
- name: Generate Markdown Comment for Failed Deployment
@@ -117,6 +119,8 @@ jobs:
117119
comment+="There was an issue deploying your changes. Please check the related `v2-deploy-pr` logs for more details.\n\n"
118120
comment+="If you need assistance, please reach out to the team.\n\n"
119121
122+
comment+="> Attempted deployment at: $(date +'%Y-%m-%d %H:%M:%S') UTC\n\n"
123+
120124
echo "markdown=$comment" >> $GITHUB_OUTPUT
121125
122126
- name: Comment on PR

.github/workflows/v2-sync-objects-dot-inv.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Setup Python
5353
uses: actions/setup-python@v4
5454
with:
55-
python-version: '3.10'
55+
python-version: '3.11'
5656

5757
- name: Install dependencies
5858
run: pip install . && poetry config warnings.export false

.github/workflows/v2-validate-demo-metadata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Setup Python
5656
uses: actions/setup-python@v4
5757
with:
58-
python-version: '3.10'
58+
python-version: '3.11'
5959

6060
- name: Install Poetry
6161
id: poetry

conf.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@
2323
sys.path.insert(0, os.path.abspath("."))
2424
sys.path.insert(0, os.path.join(os.path.dirname(__file__)))
2525

26-
# This module has been refactored from pennylane v0.41.0 to v0.42.0
27-
# This can be removed after the release of v0.42.0
28-
try:
29-
from pennylane.exceptions import PennyLaneDeprecationWarning
30-
except ModuleNotFoundError:
31-
from pennylane import PennyLaneDeprecationWarning
26+
from pennylane.exceptions import PennyLaneDeprecationWarning
3227

3328
# -- Project information -----------------------------------------------------
3429
# General information about the project.

demonstrations_v2/ahs_aquila/demo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,10 @@ def gaussian_fn(p, t):
520520
params = [amplitude_params]
521521
ts = [0.0, 1.75]
522522

523-
default_qubit = qml.device("default.qubit", wires=3, shots=1000)
523+
default_qubit = qml.device("default.qubit", wires=3)
524524

525525

526+
@qml.set_shots(1000)
526527
@qml.qnode(default_qubit, interface="jax")
527528
def circuit(parameters):
528529
qml.evolve(global_drive)(parameters, ts)
@@ -554,7 +555,7 @@ def circuit(params):
554555
return qml.counts()
555556

556557

557-
circuit_qml = qml.QNode(circuit, default_qubit, interface="jax")
558+
circuit_qml = qml.set_shots(qml.QNode(circuit, default_qubit, interface="jax"), shots = 1000)
558559
circuit_ahs = qml.QNode(circuit, rydberg_simulator)
559560

560561
print(f"PennyLane simulation: {circuit_qml(params)}")

demonstrations_v2/ahs_aquila/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"executable_stable": false,
99
"executable_latest": false,
1010
"dateOfPublication": "2023-05-16T00:00:00+00:00",
11-
"dateOfLastModification": "2025-09-22T15:48:14+00:00",
11+
"dateOfLastModification": "2025-10-15T00:00:00+00:00",
1212
"categories": [
1313
"Quantum Hardware",
1414
"Devices and Performance",

demonstrations_v2/getting_started_with_hybrid_jobs/demo.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,9 @@ def qpu_qubit_rotation_hybrid_job(num_steps=10, stepsize=0.5):
345345
device = qml.device(
346346
"braket.aws.qubit",
347347
device_arn=device_arn.value, # Make sure the device ARN matches the hybrid job device ARN
348-
wires=2,
349-
shots=1_000,
350-
)
348+
wires=2)
351349

350+
@qml.set_shots(1_000)
352351
@qml.qnode(device)
353352
def circuit(params):
354353
qml.RX(params[0], wires=0)

demonstrations_v2/getting_started_with_hybrid_jobs/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"executable_stable": false,
99
"executable_latest": false,
1010
"dateOfPublication": "2023-10-16T00:00:00+00:00",
11-
"dateOfLastModification": "2025-09-22T15:48:14+00:00",
11+
"dateOfLastModification": "2025-10-15T00:00:00+00:00",
1212
"categories": [
1313
"Devices and Performance"
1414
],

0 commit comments

Comments
 (0)