class_docstr: Test the qml.QSVT template.
class_docstr_tok: ["Test","the","qml.QSVT","template","."]
docstr: Test that qml.QSVT queues operations correctly when they are called in the qnode.
docstr_tok: ["Test","that","qml.QSVT","queues","operations","correctly","when","they","are","called","in","the","qnode","."]
code: def test_queuing_ops_defined_in_circuit(self):
      """Test that qml.QSVT queues operations correctly when they are called in the qnode."""
      lst_projectors = [
          qml.PCPhase(0.2, dim=1, wires=0),
          qml.PCPhase(0.3, dim=1, wires=0),
      ]
      results = [
          qml.PCPhase(0.2, dim=1, wires=[0]),
          qml.PauliX(wires=[0]),
          qml.PCPhase(0.3, dim=1, wires=[0]),
      ]
  
      with qml.queuing.AnnotatedQueue() as q:
          qml.QSVT(qml.PauliX(wires=0), lst_projectors)
  
      tape = qml.tape.QuantumScript.from_queue(q)
  
      for expected, val in zip(results, tape.expand().operations):
          assert qml.equal(expected, val)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 5 for calling the TestQSVT obj's underlying member method code with example usage: obj.test_queuing_ops_defined_in_circuit() without return types