class_docstr: Test initialization and repr for jacobian product calculator classes.
class_docstr_tok: ["Test","initialization","and","repr","for","jacobian","product","calculator","classes","."]
docstr: Tests the private attributes are set during initialization of a DeviceDerivatives class.
docstr_tok: ["Tests","the","private","attributes","are","set","during","initialization","of","a","DeviceDerivatives","class","."]
code: def test_device_jacobians_initialization_new_dev(self):
      """Tests the private attributes are set during initialization of a DeviceDerivatives class."""
  
      device = qml.device("default.qubit")
      config = qml.devices.ExecutionConfig(gradient_method="adjoint")
  
      jpc = DeviceDerivatives(device, config)
  
      assert jpc._device is device
      assert jpc._execution_config is config
      assert jpc._gradient_kwargs == {}
      assert jpc._uses_new_device is True
      assert isinstance(jpc._results_cache, LRUCache)
      assert len(jpc._results_cache) == 0
      assert isinstance(jpc._jacs_cache, LRUCache)
      assert len(jpc._jacs_cache) == 0
  
imports: import pytest
  from cachetools import LRUCache
  from param_shift_dev import ParamShiftDerivativesDevice
  import numpy
  import pennylane
  from pennylane.workflow.jacobian_products import JacobianProductCalculator, TransformJacobianProducts, DeviceDerivatives, DeviceJacobianProducts, LightningVJPs
label_desc: Use image node_id 2 for calling the TestBasics obj's underlying member method code with example usage: obj.test_device_jacobians_initialization_new_dev() without return types