class_docstr: Test inputs and pre-processing.
class_docstr_tok: ["Test","inputs","and","pre-processing","."]
docstr: Verifies that an exception is thrown if number of subsystems wrong.
docstr_tok: ["Verifies","that","an","exception","is","thrown","if","number","of","subsystems","wrong","."]
code: def test_exception_for_wrong_num_wires(self):
      """Verifies that an exception is thrown if number of subsystems wrong."""
  
      n_wires = 2
      dev = qml.device("default.gaussian", wires=n_wires)
  
      @qml.qnode(dev)
      def circuit(x=None):
          qml.DisplacementEmbedding(
              features=x, wires=range(n_wires), method="phase"
          )
          return [qml.expval(qml.QuadX(i)) for i in range(n_wires)]
  
      with pytest.raises(ValueError, match="Features must be of"):
          circuit(x=[0.2, 0.3, 0.4])
  
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_exception_for_wrong_num_wires() and returns: unknown