PennyLane Python Frontend¶
Module: catalyst¶
This package contains the Catalyst Python interface.
Functions¶
|
A just-in-time decorator for PennyLane and JAX programs using Catalyst. |
|
Asserts at runtime that the given condition holds, raising an error with the provided message if it does not. |
|
Configures the Catalyst MLIR pass pipeline for quantum circuit transformations for a QNode within a qjit-compiled program. |
|
Execute a |
|
Execute and return the results of a functionally pure Python function from within a qjit-compiled function. |
|
A |
|
A |
|
A |
|
Create a method that applies a controlled version of the provided op. |
|
A |
|
A |
|
A |
|
A |
|
A |
|
A |
|
A |
|
A |
|
A |
|
Create a method that applies a controlled version of the provided op. |
|
Utility function to retrieve the source code of a function converted by AutoGraph. |
|
Decorator that converts the given function into graph form. |
Classes¶
|
Class representing a just-in-time compiled hybrid quantum-classical function. |
Errors related to Catalyst's AutoGraph module. |
|
Error encountered in the compilation phase. |
|
An error indicating an invalid differentiation configuration. |
|
|
Generic compilation options, for which reasonable default values exist. |
Variables¶
Specify whether AutoGraph should avoid raising warnings when conversion fails and control flow instead falls back to being interpreted by Python at compile-time. |
|
Specify whether AutoGraph should raise exceptions when conversion fails, rather than falling back to interpreting control flow by Python at compile-time. |
|
Context decorator that disables AutoGraph for the given function/context. |
Module: catalyst.debug¶
Catalyst’s debug module contains functions useful for user program debugging.
Functions¶
|
Execute a Python function with no return value and potential side effects from within a qjit-compiled function. |
|
A |
|
A |
|
Returns the intermediate representation of one of the recorded compilation stages for a JIT-compiled function. |
|
Returns a list of tuples. |
|
Return a C program that calls a jitted function with the provided arguments. |
|
Instrumentation session to output information on wall time, CPU time, and intermediate program size of a program during compilation and execution. |
|
Replace the IR at any compilation stage that will be used the next time the function runs. |
|
Generate an executable binary for the native host architecture from a |
Module: catalyst.passes¶
This module contains Python decorators for enabling and configuring individual Catalyst MLIR compiler passes.
Note
Unlike PennyLane circuit transformations, the QNode itself will not be changed or transformed by applying these decorators.
As a result, circuit inspection tools such as draw()
will continue
to display the circuit as written in Python.
Instead, these compiler passes are applied at the MLIR level, which occurs
outside of Python during compile time. To inspect the compiled MLIR from
Catalyst, use get_compilation_stage()
with
stage="QuantumCompilationPass"
.
Functions¶
|
Applies a single pass to the qnode |
|
Applies a pass plugin |
|
Specify that the |
|
Convert dictionary of passes into tuple of passes |
|
Return EntryPoint objects for all installed packages. |
|
Apply decomposition pass at the MLIR level |
|
Specify that the |
|
Configures the Catalyst MLIR pass pipeline for quantum circuit transformations for a QNode within a qjit-compiled program. |
Classes¶
|
Utility context managing class keeping track of various modes of Catalyst executions. |
|
Class intended to hold options for passes |
|
Class intended to hold options for pass plugins |
|
PurePath subclass that can make system calls. |
|
alias of |
Module: catalyst.third_party.cuda¶
This module contains a CudaQDevice and the qjit entry point.
Classes¶
|
Base instruction set for CUDA-Quantum devices |
|
The SoftwareQ Q++ statevector simulator. |
|
The NVIDIA CuStateVec GPU simulator (with support for multi-gpu). |
|
The NVIDIA CuTensorNet GPU simulator (with support for matrix product state) |