class_docstr: Tests that the template defines the correct decomposition.
class_docstr_tok: ["Tests","that","the","template","defines","the","correct","decomposition","."]
docstr: Test that identity permutations have no effect on QNodes.
docstr_tok: ["Test","that","identity","permutations","have","no","effect","on","QNodes","."]
code: def test_identity_permutation_qnode(self, mocker):
      """Test that identity permutations have no effect on QNodes."""
  
      dev = qml.device("default.qubit", wires=4)
  
      @qml.qnode(dev, interface="autograd")
      def identity_permutation():
          qml.Permute([0, 1, 2, 3], wires=dev.wires)
          return qml.expval(qml.PauliZ(0))
  
      spy = mocker.spy(identity_permutation.device, "execute")
      identity_permutation()
  
      # expand the Permute operation
      tape = spy.call_args[0][0][0]
  
      assert len(tape.operations) == 0
  
imports: import pytest
  import numpy
  import pennylane
label_desc: Use image node_id 1 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_identity_permutation_qnode(mocker) and returns: qml