qml.devices.experimental.ExecutionConfig¶
-
class
ExecutionConfig
(grad_on_execution=None, use_device_gradient=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.
Attributes
The derivative order to compute while evaluating a gradient
Various options for the device executing a quantum circuit
Whether or not to compute the gradient at the same time as the execution.
Arguments used to control a gradient transform
The method used to compute the gradient of the quantum circuit being executed
The machine learning framework to use
Whether or not to compute the gradient on the device.
-
derivative_order
: int = 1¶ The derivative order to compute while evaluating a gradient
-
device_options
: Optional[dict] = None¶ Various options for the device executing a quantum circuit
-
grad_on_execution
: Optional[bool] = None¶ Whether or not to compute the gradient at the same time as the execution.
If
None
, then the device or execution pipeline can decide which one is most efficient for the situation.
-
gradient_keyword_arguments
: Optional[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
-
use_device_gradient
: Optional[bool] = None¶ Whether or not to compute the gradient on the device.
None
indicates to use the device if possible, but to fall back to pennylane behavior if it isn’t.True indicates a request to either use the device gradient or fail.
-