class_docstr: Tests for the qml.simplify method used with tapes.
class_docstr_tok: ["Tests","for","the","qml.simplify","method","used","with","tapes","."]
docstr: Test the simplify method with a tape.
docstr_tok: ["Test","the","simplify","method","with","a","tape","."]
code: def test_simplify_tape(self, shots):
      """Test the simplify method with a tape."""
      with qml.queuing.AnnotatedQueue() as q_tape:
          build_op()
  
      tape = QuantumScript.from_queue(q_tape, shots=shots)
      [s_tape], _ = qml.simplify(tape)
      assert len(s_tape) == 1
      s_op = s_tape[0]
      assert isinstance(s_op, qml.ops.Prod)  # pylint: disable=no-member
      assert s_op.data == simplified_op.data
      assert s_op.wires == simplified_op.wires
      assert s_op.arithmetic_depth == simplified_op.arithmetic_depth
      assert tape.shots == s_tape.shots
  
file_path: pennylane/tests/ops/functions/test_simplify.py
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.tape import QuantumScript
label_desc: Use image node_id 1 for calling the TestSimplifyTapes obj's underlying member method code with example usage: obj.test_simplify_tape(shots) without return types