Skip to content

Commit

Permalink
Add example to changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycarter committed Aug 19, 2024
1 parent db65c93 commit 739dd4a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions doc/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,25 @@
`catalyst.vjp` functions.
[(#1031)](https://github.com/PennyLaneAI/catalyst/pull/1031)

```python
from catalyst import qjit, jvp

def foo(x):
return 2 * x, x * x

@qjit()
def workflow(x: float):
return jvp(foo, (x,), (1,))
# ^
# Expected tangent dtype float, but got int
```

```
TypeError: function params and tangents arguments to catalyst.jvp do not match;
dtypes must be equal. Got function params dtype float64 and so expected tangent
dtype float64, but got tangent dtype int64 instead.
```

<h3>Breaking changes</h3>

* Return values of qjit-compiled functions that were previously `numpy.ndarray` are now of type
Expand Down

0 comments on commit 739dd4a

Please sign in to comment.