qml.interfaces.torch

This module contains functions for adding the PyTorch interface to a PennyLane Device class.

Classes

ExecuteTapes(*args, **kwargs)

The signature of this torch.autograd.Function is designed to work around Torch restrictions.

ExecuteTapesLegacy(*args, **kwargs)

The signature of this torch.autograd.Function is designed to work around Torch restrictions.

Functions

execute(tapes, device, execute_fn, …[, …])

Execute a batch of tapes with Torch parameters on a device.

pytreeify(cls)

Pytrees refer to a tree-like structure built out of container-like Python objects.