class_docstr: Testing the tracking capabilities of DefaultQubit.
class_docstr_tok: ["Testing","the","tracking","capabilities","of","DefaultQubit","."]
docstr: Test that the execute_and_compute_* calls are being tracked for the
  new default qubit device
docstr_tok: ["Test","that","the","execute_and_compute_","*","calls","are","being","tracked","for","the","new","default","qubit","device"]
code: def test_tracking_execute_and_derivatives(self):
      """Test that the execute_and_compute_* calls are being tracked for the
      new default qubit device"""
  
      qs = qml.tape.QuantumScript([], [qml.expval(qml.PauliZ(0))])
      dev = qml.device("default.qubit")
      config = ExecutionConfig(gradient_method="adjoint")
  
      with qml.Tracker(dev) as tracker:
          dev.compute_derivatives(qs, config)
          dev.execute_and_compute_derivatives([qs] * 2, config)
          dev.compute_jvp([qs] * 3, [(0,)] * 3, config)
          dev.execute_and_compute_jvp([qs] * 4, [(0,)] * 4, config)
          dev.compute_vjp([qs] * 5, [(0,)] * 5, config)
          dev.execute_and_compute_vjp([qs] * 6, [(0,)] * 6, config)
  
      assert tracker.history == {
          "executions": [2, 4, 6],
          "derivatives": [1, 2],
          "derivative_batches": [1],
          "execute_and_derivative_batches": [1],
          "jvps": [3, 4],
          "jvp_batches": [1],
          "execute_and_jvp_batches": [1],
          "vjps": [5, 6],
          "vjp_batches": [1],
          "execute_and_vjp_batches": [1],
          "resources": [Resources(num_wires=1)] * 12,
      }
  
file_path: pennylane/tests/devices/test_default_qubit_tracking.py
imports: import pytest
  import numpy
  import pennylane
  from pennylane.resource import Resources
  from pennylane.devices import ExecutionConfig
label_desc: Use image node_id 4 for calling the TestTracking obj's underlying member method code with example usage: obj.test_tracking_execute_and_derivatives() without return types