class_docstr: Tests that the template defines the correct decomposition.
class_docstr_tok: ["Tests","that","the","template","defines","the","correct","decomposition","."]
docstr: Checks the queue for the default settings.
docstr_tok: ["Checks","the","queue","for","the","default","settings","."]
code: def test_expansion(self, n_wires, expected_names, expected_wires):
      """Checks the queue for the default settings."""
  
      features = list(range(n_wires))
  
      op = qml.IQPEmbedding(features, wires=range(n_wires))
      tape = op.expand()
  
      j = 0
      for i, gate in enumerate(tape.operations):
          assert gate.name == expected_names[i]
          assert gate.wires.labels == tuple(expected_wires[i])
          if gate.name == "RZ":
              assert gate.data[0] == features[j]
              j += 1
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 1 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_expansion(n_wires, expected_names, expected_wires) without return types