qml.devices.capabilities

Defines the DeviceCapabilities class, and tools to load it from a TOML file.

Classes

DeviceCapabilities([operations, ...])

Capabilities of a quantum device.

ExecutionCondition(value)

The constraint on the support of something.

OperatorProperties([invertible, ...])

Information about support for each operation.

Functions

load_toml_file(file_path)

Loads a TOML file and returns the parsed dict.

observable_stopping_condition_factory(...)

Returns a default observable validation check from a capabilities object.

parse_toml_document(document)

Parses a TOML document into a DeviceCapabilities object.

update_device_capabilities(capabilities, ...)

Updates the device capabilities objects with additions specific to the runtime interface.

validate_mcm_method(capabilities, ...)

Validates an MCM method against the device's capabilities.

Exceptions

InvalidCapabilitiesError

Exception raised from invalid TOML files.

Contents

Using PennyLane

Release news

Development

API

Internals