Paul
Paul
```python @qml.qjit def func(x): res = jax.scipy.linalg.expm(x) return res y = jnp.array( [[1.0, 0.0], [0.0, 1.0]] ) x = func(y) Traceback (most recent call last): File "/home/paul.wang/expmfix.py", line 43, in...
### Before submitting TODO: changelog, tests, writeup of implementation Please complete the following checklist when submitting a PR: - [ ] All new functions and code must be clearly commented...
Currently only measurements are seeded for lightning simulators #936. It would be nice to have samples (aka shots) seeded too.
Currently, to access the intermediate stages of the milr compilation pipeline, we need to do `@qjit(keep_intermediate=True)`, and access the produced files with either python's `open()`, or some sort of `subprocess.call("less/cat...
`make format` and CI format checker should leave an empty line at the end of all source files (both python and cpp), but it currently does not
**Context:** Added a tutorial for writing an empty pass boilerplate in the `catalyst` dialect that prints out hello world. The boilerplate code is on branch `docs/new-pass-tutorial` in commit https://github.com/PennyLaneAI/catalyst/commit/a857655b2f7afef6de19cdc1faaa226243e0bb58 **Benefits:**...
`jax.grad` (and `catalyst.grad`) sometimes randomly fails on a qjit-ted function containing a qnode: ```python dev = qml.device("lightning.qubit", wires=1) @qjit def cost(x): @qml.qnode(dev) def circuit(x): qml.PauliX(wires=0) #qml.RZ(0, wires=0) return qml.probs() return...
Currently catalyst links to the blas library shipped with scipy, not jaxlib, because jaxlib does not ship their blas library with a .so shared object file. This results in when...
**Context:** In circuits that mostly involve the six Pauli eigenstates, the effect of gates can be described by a simple six-state finite state machine. This allows us to deduce their...
**Context:** Adding a `static_argnames` option to qjit for users to configure static arguments by name. **Description of the Change:** Under the hood, this just maps the `static_argnames` to their argument...