Skip to content

Commit

Permalink
more sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonNI8 authored Jan 9, 2025
1 parent 70aa7cf commit 449ad03
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/releases/changelog-0.40.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@
* New functionality to calculate angles for QSP and QSVT has been added.
[(#6483)](https://github.com/PennyLaneAI/pennylane/pull/6483)

This includes the function :func: `qml.poly_to_angles` to obtain angles directly, given a polynomial:
This includes the function :func: `qml.poly_to_angles <pennylane.poly_to_angles>` to obtain angles directly, given a polynomial:
```pycon
>>> poly = [0, 1.0, 0, -1/2, 0, 1/3]
>>> qsvt_angles = qml.poly_to_angles(poly, "QSVT")
>>> print(qsvt_angles)
[-5.49778714 1.57079633 1.57079633 0.5833829 1.61095884 0.74753829]
```
And :func: `qml.transform_angles` can be used to convert angles from one subroutine to another:
And :func: `qml.transform_angles <pennylane.transform_angles>` can be used to convert angles from one subroutine to another:
```pycon
>>> qsp_angles = np.array([0.2, 0.3, 0.5])
>>> qsvt_angles = qml.transform_angles(qsp_angles, "QSP", "QSVT")
>>> print(qsvt_angles)
[-6.86858347 1.87079633 -0.28539816]
```

* The :func: `qml.qsvt` function has been improved to be more user-friendly.
* The :func: `qml.qsvt <pennylane.qsvt>` function has been improved to be more user-friendly.
[(#6520)](https://github.com/PennyLaneAI/pennylane/pull/6520)
[(#6693)](https://github.com/PennyLaneAI/pennylane/pull/6693)

Expand All @@ -74,10 +74,10 @@
[ 0. 0.3793 0. 0.1625]]
```

* A new :class: `qml.GQSP` template has been added to perform Generalized Quantum Signal Processing (GQSP).
* A new :class: `qml.GQSP <pennylane.GQSP>` template has been added to perform Generalized Quantum Signal Processing (GQSP).
[(#6565)](https://github.com/PennyLaneAI/pennylane/pull/6565)

You can also use :func: `qml.poly_to_angles` to obtain angles for GQSP!
You can also use :func: `qml.poly_to_angles <pennylane.poly_to_angles>` to obtain angles for GQSP!

```python
# P(x) = 0.1 + 0.2j x + 0.3 x^2
Expand Down

0 comments on commit 449ad03

Please sign in to comment.