Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to the release notes for 0.33 #4647

Closed
wants to merge 41 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
5385f8c
Add
trbromley Oct 4, 2023
0add950
Reorganize
trbromley Oct 4, 2023
09eceee
Reorder
trbromley Oct 4, 2023
4ac1ef9
Reorder
trbromley Oct 4, 2023
0e41758
Reorder and add authors
trbromley Oct 4, 2023
2ab8d3b
Add
trbromley Oct 4, 2023
958be81
Add
trbromley Oct 4, 2023
d50da85
Add
trbromley Oct 4, 2023
05e062f
Add
trbromley Oct 4, 2023
8649587
Add
trbromley Oct 4, 2023
9f587ab
Update deprecations
trbromley Oct 13, 2023
f338bd6
Merge branch 'master' into 0.33-release-notes
trbromley Oct 16, 2023
af1edad
Add more to final feature section
trbromley Oct 16, 2023
9022717
clifford + T entry
isaacdevlugt Oct 16, 2023
1ef4354
Merge branch '0.33-release-notes' of https://github.com/PennyLaneAI/p…
isaacdevlugt Oct 16, 2023
3b87545
minor
isaacdevlugt Oct 16, 2023
a0ad955
Add
trbromley Oct 16, 2023
187d85e
Add
trbromley Oct 16, 2023
9265eb5
Merge branch '0.33-release-notes' of github.com:PennyLaneAI/pennylane…
trbromley Oct 16, 2023
a3a9224
Fix
trbromley Oct 16, 2023
11798c2
trotter product
isaacdevlugt Oct 16, 2023
691cecb
Merge branch '0.33-release-notes' of https://github.com/PennyLaneAI/p…
isaacdevlugt Oct 16, 2023
675c0e1
minor
isaacdevlugt Oct 16, 2023
6fdd743
minor
isaacdevlugt Oct 16, 2023
12afee7
minor
isaacdevlugt Oct 16, 2023
c34f9b6
remove clifford + T section
isaacdevlugt Oct 17, 2023
628e399
Merge branch 'master' into 0.33-release-notes
trbromley Oct 18, 2023
a80e53c
Add
trbromley Oct 18, 2023
781f69e
Add
trbromley Oct 18, 2023
d512567
code example
isaacdevlugt Oct 18, 2023
946262c
minor
isaacdevlugt Oct 18, 2023
396e997
minor
isaacdevlugt Oct 18, 2023
a8a7afa
minor
isaacdevlugt Oct 18, 2023
87152c7
edits to existing entries
isaacdevlugt Oct 23, 2023
ce3c689
merge conflicts
isaacdevlugt Oct 23, 2023
0bc1920
lingering merge conflicts
isaacdevlugt Oct 23, 2023
ac59829
minor
isaacdevlugt Oct 23, 2023
bb4fdd1
Add
trbromley Oct 24, 2023
63198ad
Merge branch 'v0.33.0-rc0' into 0.33-release-notes
trbromley Oct 24, 2023
ac52e2d
Merge branch '0.33-release-notes' of github.com:PennyLaneAI/pennylane…
trbromley Oct 24, 2023
936dd7d
Add
trbromley Oct 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 32 additions & 32 deletions doc/development/deprecations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Pending deprecations
* ``qml.ExpvalCost`` has been deprecated, and usage will now raise a warning.

- Deprecated in v0.24
- Will be removed in v0.32
- Will be removed in v0.34

Instead, it is recommended to simply
pass Hamiltonians to the ``qml.expval`` function inside QNodes:
Expand All @@ -21,27 +21,20 @@ Pending deprecations
some_qfunc(params)
return qml.expval(Hamiltonian)

* The behaviour of ``Operator.__eq__`` and ``Operator.__hash__`` will be updated soon. Their documentation
has been updated to reflect the incoming changes.

The upcoming changes to operator equality will allow users to use operator equality the same way as
with ``qml.equal``. With the changes to hashing, unique operators that are equal will have the same
hash. These changes will allow behaviour such as the following:

>>> qml.RX(0.1, wires=0) == qml.RX(0.1, wires=0)
True
>>> {qml.PauliZ(0), qml.PauliZ(0)}
{PauliZ(wires=[0])}
* The ``prep`` keyword argument in ``QuantumScript`` is deprecated and will be removed from ``QuantumScript``.
``StatePrepBase`` operations should be placed at the beginning of the `ops` list instead.

Meanwhile, the current behaviour is shown below:
- Deprecated in v0.33
- Will be removed in v0.34

>>> qml.RX(0.1, wires=0) == qml.RX(0.1, wires=0)
False
>>> {qml.PauliZ(0), qml.PauliZ(0)}
{PauliZ(wires=[0]), PauliZ(wires=[0])}
* `qml.gradients.pulse_generator` becomes `qml.gradients.pulse_odegen` to adhere to paper naming conventions. During v0.33, `pulse_generator`
is still available but raises a warning.

- Deprecated in v0.33
- Will be removed in v0.34

- Added in v0.32
- Behaviour will change in v0.33
Completed deprecation cycles
----------------------------

* The public methods of ``DefaultQubit`` are pending changes to
follow the new device API.
Expand All @@ -51,7 +44,7 @@ Pending deprecations
will be abstracted away from the device class itself and provided by composition, rather than inheritance.
Therefore, some public and private methods from ``DefaultQubit`` will no longer exist, though its behaviour
in a workflow will remain the same.

If you directly interact with device methods, please consult
:class:`pennylane.devices.Device` and
:class:`pennylane.devices.DefaultQubit`
Expand All @@ -62,22 +55,29 @@ Pending deprecations
`discussion forum <https://discuss.pennylane.ai/>`_.

- Deprecated in v0.31

* The ``prep`` keyword argument in ``QuantumScript`` is deprecated and will be removed from ``QuantumScript``.
``StatePrepBase`` operations should be placed at the beginning of the `ops` list instead.
- Changed in v0.33

- Deprecated in v0.33
- Will be removed in v0.34
* The behaviour of ``Operator.__eq__`` and ``Operator.__hash__`` will be updated soon. Their documentation
has been updated to reflect the incoming changes.

* `qml.gradients.pulse_generator` becomes `qml.gradients.pulse_odegen` to adhere to paper naming conventions. During v0.33, `pulse_generator`
is still available but raises a warning.

- Deprecated in v0.33
- Will be removed in v0.34
The upcoming changes to operator equality will allow users to use operator equality the same way as
with ``qml.equal``. With the changes to hashing, unique operators that are equal will have the same
hash. These changes will allow behaviour such as the following:

>>> qml.RX(0.1, wires=0) == qml.RX(0.1, wires=0)
True
>>> {qml.PauliZ(0), qml.PauliZ(0)}
{PauliZ(wires=[0])}

Completed deprecation cycles
----------------------------
Meanwhile, the current behaviour is shown below:

>>> qml.RX(0.1, wires=0) == qml.RX(0.1, wires=0)
False
>>> {qml.PauliZ(0), qml.PauliZ(0)}
{PauliZ(wires=[0]), PauliZ(wires=[0])}

- Added in v0.32
- Behaviour changed in v0.33

* ``qml.qchem.jordan_wigner`` had been removed.
Use ``qml.jordan_wigner`` instead. List input to define the fermionic operator
Expand Down
10 changes: 9 additions & 1 deletion doc/introduction/measurements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ statistics are :class:`~.pennylane.devices.DefaultQubit`, :class:`~.pennylane.de

.. code-block:: python3

dev = qml.device("default.qubit", wires=2)
dev = qml.device("default.qubit")

@qml.qnode(dev)
def func(x, y):
Expand All @@ -406,6 +406,14 @@ Executing this QNode:
(tensor([0.9267767, 0.0732233], requires_grad=True),
tensor([0.5, 0.5], requires_grad=True))

The deferred measurement principle provides a natural method to simulate the
application of mid-circuit measurements and conditional operations in a
differentiable and device-independent way. Performing true mid-circuit
measurements and conditional operations is dependent on the
quantum hardware and PennyLane device capabilities.

For more examples on applying quantum functions conditionally, refer to the
:func:`~.pennylane.cond` transform.
.. warning::

Currently, statistics can only be collected for single mid-circuit measurement values. Moreover, any
Expand Down
Loading
Loading