class_docstr: Test that the template defines the correct decomposition.
class_docstr_tok: ["Test","that","the","template","defines","the","correct","decomposition","."]
docstr: Test that the decomposition function warns if there are not enough qubits.
docstr_tok: ["Test","that","the","decomposition","function","warns","if","there","are","not","enough","qubits","."]
code: def test_decomposition_exception_not_enough_qubits(self):
      """Test that the decomposition function warns if there are not enough qubits."""
  
      with pytest.raises(
          ValueError,
          match="TwoLocalSwapNetwork requires at least 2 wires",
      ):
          qml.templates.TwoLocalSwapNetwork.compute_decomposition(
              weights=None,
              wires=range(1),
              acquaintances=None,
          )
  
imports: import pytest
  from pennylane import numpy
  import pennylane
label_desc: Use image node_id 4 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_decomposition_exception_not_enough_qubits() without return types