class_docstr: Unit tests for the ParametrizedEvolution class.
class_docstr_tok: ["Unit","tests","for","the","ParametrizedEvolution","class","."]
docstr: Make sure that updating a ``ParametrizedEvolution`` inside a queuing context, the initial
  operator is removed from the queue.
docstr_tok: ["Make","sure","that","updating","a","``","ParametrizedEvolution","``","inside","a","queuing","context",",","the","initial","operator","is","removed","from","the","queue","."]
code: def test_update_attributes_inside_queuing_context(self):
      """Make sure that updating a ``ParametrizedEvolution`` inside a queuing context, the initial
      operator is removed from the queue."""
      ops = [qml.PauliX(0), qml.PauliY(1)]
      coeffs = [1, 2]
      H = ParametrizedHamiltonian(coeffs, ops)
  
      with QuantumTape() as tape:
          op = qml.evolve(H)
          op2 = op(params=[], t=6)
  
      assert len(tape) == 1
      assert tape[0] is op2
  
imports: from functools import reduce
  import numpy
  import pytest
  import pennylane
  from pennylane.operation import AnyWires
  from pennylane.ops import QubitUnitary
  from pennylane.pulse import ParametrizedEvolution, ParametrizedHamiltonian
  from pennylane.tape import QuantumTape
  from pennylane.devices import DefaultQubit, DefaultQubitLegacy
label_desc: Use image node_id 9 for calling the TestInitialization obj's underlying member method code with example usage: obj.test_update_attributes_inside_queuing_context() without return types