class_docstr: Tests that the template defines the correct decomposition.
class_docstr_tok: ["Tests","that","the","template","defines","the","correct","decomposition","."]
docstr: Test more general cycles on tapes.
docstr_tok: ["Test","more","general","cycles","on","tapes","."]
code: def test_cyclic_permutations_tape(
      self, permutation_order, wire_order, expected_wires
  ):
      """Test more general cycles on tapes."""
  
      with qml.queuing.AnnotatedQueue() as q:
          qml.Permute(permutation_order, wire_order)
  
      tape = qml.tape.QuantumScript.from_queue(q)
      # expand the Permute operation
      tape = tape.expand()
  
      # Ensure all operations are SWAPs, and that the wires are the same
      assert all(op.name == "SWAP" for op in tape.operations)
      assert [
          op.wires.labels for op in tape.operations
      ] == expected_wires
  
imports: import pytest
  import numpy
  import pennylane
label_desc: Use image node_id 6 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_cyclic_permutations_tape(permutation_order, wire_order, expected_wires) without return types