qml.compiler.available

available(compiler='catalyst')[source]

Check the availability of the given compiler package.

Parameters

compiler (str) – Name of the compiler package (default value is catalyst)

Returns

True if the compiler package is installed on the system

Return type

bool

Example

Before installing the pennylane-catalyst package:

>>> qml.compiler.available("catalyst")
False

After installing the pennylane-catalyst package:

>>> qml.compiler.available("catalyst")
True