Skip to content

Commit bade853

Browse files
Fix result for the Demo how_to_catalyst_lightning_gpu.py (#1438)
**Title:** Fix result for the Demo `how_to_catalyst_lightning_gpu.py` **Summary:** Since JAX v0.5.0, the PRNGKey behaviour has been updated, so using the same PRNGKey with different versions of JAX will impact what outputs jax.random gives. **Relevant references:** **Possible Drawbacks:** **Related GitHub Issues:** [sc-95314] ---- If you are writing a demonstration, please answer these questions to facilitate the marketing process. * GOALS — Why are we working on this now? *Eg. Promote a new PL feature or show a PL implementation of a recent paper.* * AUDIENCE — Who is this for? *Eg. Chemistry researchers, PL educators, beginners in quantum computing.* * KEYWORDS — What words should be included in the marketing post? * Which of the following types of documentation is most similar to your file? (more details [here](https://www.notion.so/xanaduai/Different-kinds-of-documentation-69200645fe59442991c71f9e7d8a77f8)) - [ ] Tutorial - [X] Demo - [ ] How-to
1 parent a87ab46 commit bade853

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

demonstrations/how_to_catalyst_lightning_gpu.metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
],
1111
"dateOfPublication": "2025-02-21T10:00:00+00:00",
12-
"dateOfLastModification": "2025-02-21T10:00:00+00:00",
12+
"dateOfLastModification": "2025-07-11T10:00:00+00:00",
1313
"categories": [
1414
"Getting Started",
1515
"Quantum Chemistry",

demonstrations/how_to_catalyst_lightning_gpu.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
#
108108
# .. code-block:: none
109109
#
110-
# 1.7712995142661776
110+
# 1.2454125296886156
111111
#
112112
# Lightning-GPU has feature parity with `the rest of Lightning state-vector simulators <https://docs.pennylane.ai/projects/lightning/en/stable>`__,
113113
# providing native support for many PennyLane's operations and measurement processes with
@@ -141,7 +141,7 @@
141141
#
142142
# .. code-block:: none
143143
#
144-
# [ 8.8817842e-16 ... -6.2915415e-01 0.0000000e+00]
144+
# [ -1.1102230e-16 ... -7.2645772e-01 0.0000000e+00]
145145
#
146146
#
147147
# Note that in the above example, we didn't use ``method="adjoint"``.
@@ -194,7 +194,7 @@
194194
# Step = 7
195195
# Step = 8
196196
# Step = 9
197-
# [1.24479175e-01 ... 9.45755959e-01 4.64060426e-01]
197+
# [0.947667 ... 3.093198 0.8401809 ]
198198
#
199199
#
200200
# We used `Optax <https://github.com/google-deepmind/optax>`__,

0 commit comments

Comments
 (0)