mqt.core.plugins.pennylane.exceptions

Exception types for the QDMI PennyLane integration.

Module Contents

exception QDMIPluginError

Bases: RuntimeError

Base class for QDMI PennyLane plugin errors.

exception PennyLaneConfigurationError

Bases: QDMIPluginError

Raised when device or job configuration is invalid.

exception PennyLaneValidationError

Bases: QDMIPluginError

Raised when a quantum program is invalid for the selected device.

exception PennyLaneTranslationError

Bases: QDMIPluginError

Raised when a PennyLane program cannot be translated.

exception PennyLaneUnsupportedFormatError

Bases: PennyLaneTranslationError

Raised when a device advertises no supported exchange format.

exception PennyLaneUnsupportedOperationError

Bases: PennyLaneTranslationError

Raised when an operation cannot be represented for the selected device.

exception PennyLaneExecutionError

Bases: QDMIPluginError

Raised when submission or execution of a QDMI job fails.