class_docstr: Test inputs and pre-processing.
class_docstr_tok: ["Test","inputs","and","pre-processing","."]
docstr: Test that AllSinglesDoubles throws an exception if the parameters have illegal
  shapes, types or values.
docstr_tok: ["Test","that","AllSinglesDoubles","throws","an","exception","if","the","parameters","have","illegal","shapes",",","types","or","values","."]
code: def test_allsinglesdoubles_exceptions(
      self, weights, wires, singles, doubles, hf_state, msg_match
  ):
      """Test that AllSinglesDoubles throws an exception if the parameters have illegal
      shapes, types or values."""
  
      dev = qml.device("default.qubit", wires=len(wires))
  
      def circuit(
          weights=weights,
          wires=wires,
          hf_state=hf_state,
          singles=singles,
          doubles=doubles,
      ):
          qml.AllSinglesDoubles(
              weights=weights,
              wires=wires,
              hf_state=hf_state,
              singles=singles,
              doubles=doubles,
          )
          return qml.expval(qml.PauliZ(0))
  
      qnode = qml.QNode(circuit, dev)
  
      with pytest.raises(ValueError, match=msg_match):
          qnode(
              weights=weights,
              wires=wires,
              hf_state=hf_state,
              singles=singles,
              doubles=doubles,
          )
  
imports: import pytest
  import numpy
  from pennylane import numpy
  import pennylane
label_desc: Use image node_id 1 for calling the TestInputs obj's underlying member method code with example usage: obj.test_allsinglesdoubles_exceptions(weights, wires, singles, doubles, hf_state, msg_match) and returns: qml