class_docstr: Test the core functionality of the VQE module
class_docstr_tok: ["Test","the","core","functionality","of","the","VQE","module"]
docstr: Test that the step size and order used for the finite differences
  differentiation method were passed to the QNode instances using the
  keyword arguments.
docstr_tok: ["Test","that","the","step","size","and","order","used","for","the","finite","differences","differentiation","method","were","passed","to","the","QNode","instances","using","the","keyword","arguments","."]
code: def test_passing_kwargs(self, coeffs, observables, expected):
      """Test that the step size and order used for the finite differences
      differentiation method were passed to the QNode instances using the
      keyword arguments."""
      dev = qml.device("default.qubit", wires=2)
      hamiltonian = qml.Hamiltonian(coeffs, observables)
      cost = catch_warn_ExpvalCost(
          lambda params, **kwargs: None,
          hamiltonian,
          dev,
          h=123,
          order=2,
      )
  
      # Checking that the qnodes contain the step size and order
      for qnode in cost.qnodes:
          assert qnode.gradient_kwargs["h"] == 123
          assert qnode.gradient_kwargs["order"] == 2
  
imports: import copy
  import numpy
  import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 4 for calling the TestVQE obj's underlying member method code with example usage: obj.test_passing_kwargs(coeffs, observables, expected) without return types