class_docstr: Test inputs and pre-processing.
class_docstr_tok: ["Test","inputs","and","pre-processing","."]
docstr: Test exception if ``weight`` or
  ``pphh`` parameter has illegal shapes, types or values.
docstr_tok: ["Test","exception","if","``","weight","``","or","``","pphh","``","parameter","has","illegal","shapes",",","types","or","values","."]
code: def test_double_excitation_unitary_exceptions(
      self, weight, wires1, wires2, msg_match
  ):
      """Test exception if ``weight`` or
      ``pphh`` parameter has illegal shapes, types or values."""
      dev = qml.device("default.qubit", wires=10)
  
      def circuit(weight):
          qml.FermionicDoubleExcitation(
              weight=weight, wires1=wires1, wires2=wires2
          )
          return qml.expval(qml.PauliZ(0))
  
      qnode = qml.QNode(circuit, dev)
  
      with pytest.raises(ValueError, match=msg_match):
          qnode(weight)
  
file_path: pennylane/tests/templates/test_subroutines/test_double_excitation.py
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_double_excitation_unitary_exceptions(weight, wires1, wires2, msg_match) and returns: qml