class_docstr: Non differentiability tests for the transform program keyword argument.
docstr: Integration tests for a transform program that modifies the input tapes.
docstr_tok: ["Integration","tests","for","a","transform","program","that","modifies","the","input","tapes","."]
code: def test_transform_program_modifies_circuit(self, interface):
      """Integration tests for a transform program that modifies the input tapes."""
  
      dev = qml.devices.DefaultQubit()
  
      def null_postprocessing(results):
          return results[0]
  
      def just_pauli_x_out(
          tape: qml.tape.QuantumTape,
      ) -> (Tuple[qml.tape.QuantumTape], Callable):
          return (
              qml.tape.QuantumScript(
                  [qml.PauliX(0)], tape.measurements
              ),
          ), null_postprocessing
  
      pauli_x_out_container = qml.transforms.core.TransformContainer(
          just_pauli_x_out
      )
  
      transform_program = qml.transforms.core.TransformProgram(
          [pauli_x_out_container]
      )
  
      tape0 = qml.tape.QuantumScript(
          [qml.Rot(1.2, 2.3, 3.4, wires=0)], [qml.expval(qml.PauliZ(0))]
      )
      tape1 = qml.tape.QuantumScript(
          [qml.Hadamard(0), qml.IsingXX(1.2, wires=(0, 1))],
          [qml.expval(qml.PauliX(0))],
      )
  
      with dev.tracker as tracker:
          results = qml.execute(
              (tape0, tape1),
              dev,
              transform_program=transform_program,
              interface=interface,
          )
  
      assert qml.math.allclose(results[0], -1.0)
      assert qml.math.allclose(results[1], 0.0)
  
      assert tracker.totals["executions"] == 2
      assert tracker.history["resources"][0].gate_types["PauliX"] == 1
      assert tracker.history["resources"][0].num_gates == 1
      assert tracker.history["resources"][1].gate_types["PauliX"] == 1
      assert tracker.history["resources"][1].num_gates == 1
  
file_path: pennylane/tests/interfaces/test_transform_program_integration.py
imports: import copy
  from typing import Tuple, Callable
  from functools import partial
  import pytest
  import numpy
  import pennylane
label_desc: Use image node_id 2 for calling the TestTransformProgram obj's underlying member method code with example usage: obj.test_transform_program_modifies_circuit(interface) and returns: results, qml,  null_postprocessing