class_docstr: Tests logic when derivatives, vjp, or jvp are overridden.
class_docstr_tok: ["Tests","logic","when","derivatives",",","vjp",",","or","jvp","are","overridden","."]
docstr: Tests default logic for a device with a jvp provided.
docstr_tok: ["Tests","default","logic","for","a","device","with","a","jvp","provided","."]
code: def test_provided_jvp(self):
      """Tests default logic for a device with a jvp provided."""
  
      # pylint: disable=unused-argnument
      class WithJvp(Device):
          """A device with a jvp."""
  
          def execute(
              self,
              circuits,
              execution_config: ExecutionConfig = DefaultExecutionConfig,
          ):
              return "a"
  
          def compute_jvp(
              self,
              circuits,
              tangents,
              execution_config: ExecutionConfig = DefaultExecutionConfig,
          ):
              return ("c",)
  
      dev = WithJvp()
      assert dev.supports_jvp()
  
      out = dev.execute_and_compute_jvp(
          qml.tape.QuantumScript(), (1.0,)
      )
      assert out[0] == "a"
      assert out[1] == ("c",)
  
imports: import pytest
  import pennylane
  from pennylane.devices import Device, ExecutionConfig, DefaultExecutionConfig
  from pennylane.wires import Wires
label_desc: Use image node_id 2 for calling the TestProvidingDerivatives obj's underlying member method code with example usage: obj.test_provided_jvp() and returns: str, str