class_docstr: Tests for the ``adjoint_jacobian`` method
class_docstr_tok: ["Tests","for","the","``","adjoint_jacobian","``","method"]
docstr: Tests provides correct answer when provided starting state.
docstr_tok: ["Tests","provides","correct","answer","when","provided","starting","state","."]
code: def test_provide_starting_state(self, tol, dev):
      """Tests provides correct answer when provided starting state."""
      x, y, z = [0.5, 0.3, -0.7]
  
      with qml.queuing.AnnotatedQueue() as q:
          qml.RX(0.4, wires=[0])
          qml.Rot(x, y, z, wires=[0])
          qml.RY(-0.2, wires=[0])
          qml.expval(qml.PauliZ(0))
  
      tape = qml.tape.QuantumScript.from_queue(q)
      tape.trainable_params = {1, 2, 3}
  
      dM1 = dev.adjoint_jacobian(tape)
  
      qml.execute([tape], dev, None)
      dM2 = dev.adjoint_jacobian(
          tape, starting_state=dev._pre_rotated_state
      )
  
      assert np.allclose(dM1, dM2, atol=tol, rtol=0)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 15 for calling the TestAdjointJacobian obj's underlying member method code with example usage: obj.test_provide_starting_state(tol, dev) without return types