catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

A JIT compiler for hybrid quantum programs in PennyLane

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

**Context:** Debugging multi-language programming environments can be a challenge due to the intermingling and swapping between all participating languages. In the case of PennyLane and Catalyst, this is a mix...

## Context When using `@qjit` with finite shots, `qml.sample()` measurements fail with a shape canonicalization error involving `OutDBIdx` references, while `qml.expval()` measurements work correctly. This occurs in the `dynamic_one_shot` transformation...

bug

One example is the merge rotation formula for `Rot` which involves a `sqrt` operation with an undefined derivative at 0. See also: _Originally posted by @rturrado in https://github.com/PennyLaneAI/catalyst/pull/1955#discussion_r2258260899_

enhancement
compiler

**This PR should be merged along with [this PR](https://github.com/PennyLaneAI/pennylane/pull/8121) in PennyLane** Context: This PR updates Catalyst since the `python.compiler` module in PennyLane has been renamed `unified.compiler` Description of the Change:...

Our OpenQASM runtime tests fail trying to [import required packages](https://github.com/PennyLaneAI/catalyst/blob/77b282a67f662a29d176ec51c3cf023cfc8cbbd1/runtime/lib/backend/openqasm/openqasm_python_module.cpp#L25-L26) when a virtual environment is used and the global environment does not have `numpy` and `amazon-braket-sdk` installed: ``` (new_env) ➜...

bug
runtime

### Before submitting Please complete the following checklist when submitting a PR: - [ ] All new functions and code must be clearly commented and documented. - [ ] Ensure...

wip

**Context:** **Description of the Change:** When running a quantum circuit on a hardware with certain connectivity constraints, two-qubit gates like CNOTs can only be executed using physical qubits that are...

Happened upon this by chance, but it appears to me the following line is erroneous: https://github.com/PennyLaneAI/catalyst/blob/834b582c68ecdf6e3f759fcf8c4de88bcef67bb1/frontend/catalyst/compiled_functions.py#L318 `args` is defined up here and always consists of two elements, the args tuple...

frontend

**Context:** This is not a fully fledge runtime function specialization pass, but it is close. These changes show a proof of concept that would allow internal researchers to prototype function...

do-not-merge

**Context:** Profiling large programs of interest found that this cache is problematic when compiling functions with very large bodies. This cache may be beneficial for medium sized programs. MLIR is...