catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

A JIT compiler for hybrid quantum programs in PennyLane

Results 282 catalyst issues
Sort by recently updated
recently updated
newest added

#### Issue description Test case: ```python from catalyst import qjit, measure import pennylane as qml @qjit @qml.qnode(qml.device("lightning.qubit", wires=2)) def circuit(x: int): return measure(x) circuit(0) circuit(1) circuit(2) ``` * *Expected behavior:*...

bug

Two issues are uncovered in the referenced discussion: - Which errors are raised during a fallback to Python? Sometimes it is clear the user intended to perform an autograph conversion,...

enhancement

```python import pennylane as qml import pytest from catalyst import qjit def test_observable_as_parameter(backend): """Test to see if we can pass an observable parameter to qfunc.""" coeffs0 = [0.3, -5.1] H0...

bug

Once this [issue](https://github.com/PennyLaneAI/pennylane/issues/4263) in PL is resolved, apply the following patch: ```diff diff --git a/frontend/catalyst/jax_tracer.py b/frontend/catalyst/jax_tracer.py index 0205381..f7bddb6 100644 --- a/frontend/catalyst/jax_tracer.py +++ b/frontend/catalyst/jax_tracer.py @@ -352,24 +352,6 @@ def trace_quantum_tape( return...

enhancement

See issue https://github.com/PennyLaneAI/catalyst/issues/59 Parameters are taken from here: https://docs.pennylane.ai/en/stable/code/api/pennylane.broadcast.html

We currently serve all backend devices in a way that they all support an identical set of quantum gates. This design assumption would lead to the failure of decomposition rules...

enhancement

The imports ``` import tensorflow import catalyst ``` do not always work, and some tests are failing if tensorflow is imported first. We can see that in when testing the...

dependencies

The following code, with no classical post-processing on the function we are computing the gradient of, works correctly: ```python @qjit def f(x): @qml.qnode(dev) def g(y): qml.RX(y, wires=0) return qml.expval(qml.PauliZ(0)) return...

bug

#### Issue description I am experiencing issues when importing Catalyst that seem to depend on where and how the library is imported. It might be specific to my installation (I...

dependencies

The future improvement reminder issue. The nested tape tracer introduced by https://github.com/PennyLaneAI/catalyst/pull/240 relies on the [topological sorting](https://github.com/PennyLaneAI/catalyst/blob/64fb970d8979254664863edadcd7f76113cec624/frontend/catalyst/utils/jax_extras.py#L163) which might need reviewing. The sorting is used as the final step in...

enhancement