# qml.interfaces.jax.execute_new¶

execute_new(tapes, device, execute_fn, gradient_fn, gradient_kwargs, _n=1, max_diff=2)[source]

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

Parameters
• tapes (Sequence[QuantumTape]) – batch of tapes to execute

• device (pennylane.Device) – Device to use for the shots vectors.

• execute_fn (callable) – The execution function used to execute the tapes during the forward pass. This function must return a tuple (results, jacobians). If jacobians is an empty list, then gradient_fn is used to compute the gradients during the backwards pass.

• gradient_kwargs (dict) – dictionary of keyword arguments to pass when determining the gradients of tapes

• max_diff (int) – If gradient_fn is a gradient transform, this option specifies the maximum order of derivatives to support. Increasing this value allows for higher order derivatives to be extracted, at the cost of additional (classical) computational overhead during the backwards pass.