David Ittah

Results 58 issues of David Ittah

This PR allows `qml.sample` (and implicitly other measurement processes) to accept a Boolean tracer in the observable parameter, similar to what is already done for the `MeasurementValue` value object. The...

### Expected behavior Creating a tape should initialize the `trainable_params` property according to the parameters received: ```py weights = [0.1, 0.2] with qml.tape.QuantumTape() as tape: qml.RX(weights[0], wires=0) qml.RY(weights[1], wires=0) qml.expval(qml.PauliZ(0)...

bug :bug:
wontfix :see_no_evil:
autodiff :chart_with_upwards_trend:

This PR can be merged after https://github.com/PennyLaneAI/pennylane/pull/5673. Introduce support for `m = measure(0); qml.sample(m)` in Catalyst programs. In conjunction with ongoing work on MCM support, this will allow returning `shots`...

### Context Catalyst uses a source-to-source transformation package called [AutoGraph](https://docs.pennylane.ai/projects/catalyst/en/stable/dev/autograph.html), which allows users to write regular Python code that is automagically transformed into JAX-style traceable code. For example, the following...

enhancement
frontend

The idea is to use a custom PyTree class that is injected into the JAXPR when we are tracing the tape. The PyTree node will remain an array tuple for...

Catalyst support for certain JAX functions relies on a BLAS runtime library being available, specifically the OpenBLAS library shipped with SciPy. The relevant source code is located in the Python...

enhancement

```py dev = qml.device("braket.local.qubit", wires=2) @qjit @qml.qnode(dev) def f(x: float): qml.PSWAP(x, wires=[0, 1]) qml.ISWAP(wires=[1, 0]) return qml.probs() f(0.3) ``` The circuit raises a cryptic error that does not make it...

bug

```py dev = qml.device("braket.local.qubit", wires=2, shots=100) @qjit @qml.qnode(dev) def f(x: float): return qml.expval(qml.PauliZ(0) @ qml.PauliX(1)) f(0.7) ``` ``` RuntimeError: [OpenQasmRunner.hpp][Line:343][Function:Expval] Error in Catalyst Runtime: max() arg is an empty sequence...

bug

`qml.cond` can be used with the typical Catalyst conditional: ```py def true_fn(): qml.RY(0.7, wires=0) qml.cond(x < 0.9, true_fn)() ``` But what doesn't work is the common PennyLane usage pattern for...

bug
frontend