class_docstr: This device provides derivatives via parameter shift.
class_docstr_tok: ["This","device","provides","derivatives","via","parameter","shift","."]
code: def preprocess(
      self, execution_config=qml.devices.DefaultExecutionConfig
  ):
      if execution_config.gradient_method in {
          "device",
          "parameter-shift",
      }:
          execution_config = dataclasses.replace(
              execution_config, use_device_gradient=True
          )
          if execution_config.use_device_jacobian_product is None:
              execution_config = dataclasses.replace(
                  execution_config, use_device_jacobian_product=True
              )
      return super().preprocess(execution_config)
  
file_path: pennylane/tests/param_shift_dev.py
imports: import dataclasses
  import pennylane
label_desc: Use image node_id 1 for calling the ParamShiftDerivativesDevice obj's underlying member method code with example usage: obj.preprocess(execution_config) and returns: super