class_docstr: Integration tests to verify outputs of compilation pipelines.
class_docstr_tok: ["Integration","tests","to","verify","outputs","of","compilation","pipelines","."]
docstr: Test that the default pipeline returns the correct results.
docstr_tok: ["Test","that","the","default","pipeline","returns","the","correct","results","."]
code: def test_compile_default_pipeline_qnode(self, wires):
      """Test that the default pipeline returns the correct results."""
  
      qfunc = build_qfunc(wires)
      dev = qml.device("default.qubit", wires=Wires(wires))
  
      qnode = qml.QNode(qfunc, dev)
  
      transformed_qfunc = compile(qfunc)
      transformed_qnode = qml.QNode(transformed_qfunc, dev)
      transformed_qnode_direct = compile(qnode)
  
      qfun_res = transformed_qnode(0.1, 0.2, 0.3)
      qnode_res = transformed_qnode_direct(0.1, 0.2, 0.3)
  
      assert np.allclose(qfun_res, qnode_res)
  
imports: from functools import partial
  import pytest
  from test_optimization.utils import compare_operation_lists
  import pennylane
  from pennylane import numpy
  from pennylane.wires import Wires
  from pennylane.transforms.compile import compile
  from pennylane.transforms import unitary_to_rot
  from pennylane.transforms.optimization import cancel_inverses, commute_controlled, merge_rotations, single_qubit_fusion
  from pennylane.transforms.optimization.optimization_utils import _fuse_global_phases
label_desc: Use image node_id 3 for calling the TestCompileIntegration obj's underlying member method code with example usage: obj.test_compile_default_pipeline_qnode(wires) without return types