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 sequence of gates implemented in the ApproxTimeEvolution template is correct
docstr_tok: ["Tests","that","the","sequence","of","gates","implemented","in","the","ApproxTimeEvolution","template","is","correct"]
code: def test_evolution_operations(
      self, time, hamiltonian, steps, expected_queue
  ):
      """Tests that the sequence of gates implemented in the ApproxTimeEvolution template is correct"""
  
      op = qml.ApproxTimeEvolution(hamiltonian, time, steps)
      queue = op.expand().operations
  
      for expected_gate, gate in zip(expected_queue, queue):
          prep = [gate.parameters, gate.wires]
          target = [expected_gate.parameters, expected_gate.wires]
  
          assert prep == target
  
imports: import pytest
  import numpy
  from pennylane import numpy
  import pennylane
label_desc: Use image node_id 1 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_evolution_operations(time, hamiltonian, steps, expected_queue) without return types