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_broadcasted(
      self, n_wires, expected_names, expected_wires
  ):
      """Checks the queue for the default settings."""
  
      features = np.arange(n_wires * 3).reshape((3, n_wires))
  
      op = qml.IQPEmbedding(features, wires=range(n_wires))
      assert op.batch_size == 3
      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.batch_size == 3
              assert np.allclose(gate.data[0], features[:, j])
              j += 1
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 2 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_expansion_broadcasted(n_wires, expected_names, expected_wires) without return types