catalyst
catalyst copied to clipboard
A JIT compiler for hybrid quantum programs in PennyLane
**Context:** - Add `debug.compiler_functions.compile_cmain` to compiler a c main wrapper into an executable. - (Mainly for testing) Add `debug.compiler_functions.run_cmain_executable` to run the generate executable with the shared object from MLIR/LLVM....
**Context:** This PR introduces two new methods in `frontend/catalyst/debug/compiler_functions.py`. - `get_pipeline_output(fn: QJIT, pass_name: str) -> str` fetches the IR string after the given pipeline pass ``pass_name``. - `replace_ir(fn: QJIT, pass_name:...
Add operations for setting state and basis state and integrate this with `skip_initial_state_prep`
**Context:** It has been determined that `qml.StatePrep` takes too long to compile. To facilitate this, it was determined that the optimization of setting the initial state to the operand of...
------------------------------------------------------------------------------------------------------------ **Context:** Tooling Team has requested that all CI checks for draft PRs across all PennyLane repos are to be disabled to free up resources. [SC Story](https://app.shortcut.com/xanaduai/story/66346/disable-ci-for-pl-draft-prs). **Description of the...
**Context:** Unitary Fund has partnered with Xanadu PennyLane Catalyst to add local folding functionality to Catalyst. As discussed previously, the implementation does not yet match the unit test, but we...
**Context:** Currently in Catalyst, keyword arguments to functions are not supported by qjit. for example: ``` @qjit() def f(x, y): return x * y result = f(3, y=2) assert result...
https://github.com/PennyLaneAI/pennylane/pull/6082 unearthed that in an attempt to be more lenient with user supplied types, Catalyst eagerly converts any type to the required float64 type for gate parameters, including when this...
### 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...
The requirement here identical code folding (also known as `mergeIdenticalBlocks`) can be run before the `add-exception-handling-pass`. See ticket #995 . Something that would also be good is improve the pass...
Currently only measurements are seeded for lightning simulators #936. It would be nice to have samples (aka shots) seeded too.