class_docstr: Tests that the template defines the correct decomposition.
class_docstr_tok: ["Tests","that","the","template","defines","the","correct","decomposition","."]
docstr: Tests that the output from the ApproxTimeEvolution template is correct
docstr_tok: ["Tests","that","the","output","from","the","ApproxTimeEvolution","template","is","correct"]
code: def test_evolution_output(
      self, time, hamiltonian, steps, expectation
  ):
      """Tests that the output from the ApproxTimeEvolution template is correct"""
  
      n_wires = 2
      dev = qml.device("default.qubit", wires=n_wires)
  
      @qml.qnode(dev)
      def circuit():
          qml.ApproxTimeEvolution(hamiltonian, time, steps)
          return [
              qml.expval(qml.PauliZ(wires=i)) for i in range(n_wires)
          ]
  
      assert np.allclose(circuit(), expectation)
  
imports: import pytest
  import numpy
  from pennylane import numpy
  import pennylane
label_desc: Use image node_id 2 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_evolution_output(time, hamiltonian, steps, expectation) and returns: unknown