class_docstr: Tests that the template defines the correct decomposition.
class_docstr_tok: ["Tests","that","the","template","defines","the","correct","decomposition","."]
docstr: Tests queue for simple cases.
docstr_tok: ["Tests","queue","for","simple","cases","."]
code: def test_correct_pl_gates(self, basis_state, wires, target_wires):
      """Tests queue for simple cases."""
  
      op = qml.BasisStatePreparation(basis_state, wires)
      queue = op.expand().operations
  
      for id, gate in enumerate(queue):
          assert gate.name == "PauliX"
          assert gate.wires.tolist() == [target_wires[id]]
  
file_path: pennylane/tests/templates/test_state_preparations/test_basis_state_prep.py
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_correct_pl_gates(basis_state, wires, target_wires) without return types