Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ddhawan11 authored Jan 30, 2024
2 parents 49c6678 + bb0bf88 commit 2b971e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/releases/changelog-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@
* A typo in a code example in the `qml.transforms` API has been fixed.
[(#5014)](https://github.com/PennyLaneAI/pennylane/pull/5014)

* Documentation `qml.data` has been updated and now mentions a way to access the same dataset simultaneously from multiple environments.
[(#5029)](https://github.com/PennyLaneAI/pennylane/pull/5029)

* Clarification for the definition of `argnum` added to gradient methods
[(#5035)](https://github.com/PennyLaneAI/pennylane/pull/5035)

Expand Down Expand Up @@ -301,6 +304,7 @@ Gabriel Bottrill,
Astral Cai,
Isaac De Vlugt,
Diksha Dhawan,
Diego Guala,
Korbinian Kottmann,
Christina Lee,
Xiaoran Li,
Expand Down
6 changes: 6 additions & 0 deletions pennylane/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@
>>> my_dataset = Dataset.open("~/dataset/my_dataset/h5", mode="copy")
>>> my_dataset.new_attribute = "abc"
.. important::
Since opened datasets stream data from the disk, it is not possible to simultaneously access the same
dataset from separately running scripts or multiple Jupyter notebooks. To get around
this, either make a copy of the dataset in the disk or access the dataset using :meth:`Dataset.open()`
with ``mode="copy"``.
Attribute Metadata
------------------
Expand Down

0 comments on commit 2b971e0

Please sign in to comment.