qml.devices.experimental.ExecutionConfig

class ExecutionConfig(shots=None, gradient_method=None, gradient_keyword_arguments=None, device_options=None, interface='autograd', derivative_order=1)[source]

Bases: object

A class to configure the execution of a quantum circuit on a device.

See the Attributes section to learn more about the various configurable options.

derivative_order

The derivative order to compute while evaluating a gradient

device_options

Various options for the device executing a quantum circuit

gradient_keyword_arguments

Arguments used to control a gradient transform

gradient_method

The method used to compute the gradient of the quantum circuit being executed

interface

The machine learning framework to use

shots

The number of shots for an execution

derivative_order: int = 1

The derivative order to compute while evaluating a gradient

device_options: dict = None

Various options for the device executing a quantum circuit

gradient_keyword_arguments: dict = None

Arguments used to control a gradient transform

gradient_method: Optional[str] = None

The method used to compute the gradient of the quantum circuit being executed

interface: str = 'autograd'

The machine learning framework to use

shots: Optional[Union[int, Tuple[int]]] = None

The number of shots for an execution