Skip to content

Commit

Permalink
updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mariaschuld committed Apr 7, 2021
1 parent a639ccd commit 62c6b43
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -537,14 +537,16 @@
1: ──RY(1.35)──╰X──RY(0.422)──╰X──┤
```

- The embedding templates, as well as `BasicEntanglerLayers`, are now classes inheriting
- The embedding and state preparation templates,
as well as `BasicEntanglerLayers`, are now classes inheriting
from `Operation`, and define the ansatz in their `expand()` method. This
change does not affect the user interface.
[(#1138)](https://github.com/PennyLaneAI/pennylane/pull/1138)
[(#1156)](https://github.com/PennyLaneAI/pennylane/pull/1156)

For convenience, `BasicEntanglerLayers` has a method that returns the shape of the
trainable parameter tensor, i.e.,
For convenience, some templates now have a method that returns the expected
shape of the trainable parameter tensor, which can be used to create
random tensors.

```python
shape = qml.templates.BasicEntanglerLayers.shape(n_layers=2, n_wires=4)
Expand Down

0 comments on commit 62c6b43

Please sign in to comment.