class_docstr: Test inputs and pre-processing.
class_docstr_tok: ["Test","inputs","and","pre-processing","."]
docstr: Checks exception if number of features is not same as number of qubits.
docstr_tok: ["Checks","exception","if","number","of","features","is","not","same","as","number","of","qubits","."]
code: def test_wrong_input_bits_exception(self, x):
      """Checks exception if number of features is not same as number of qubits."""
  
      dev = qml.device("default.qubit", wires=2)
  
      @qml.qnode(dev)
      def circuit():
          qml.BasisEmbedding(features=x, wires=range(2))
          return qml.expval(qml.PauliZ(0))
  
      with pytest.raises(
          ValueError, match="Features must be of length"
      ):
          circuit()
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 2 for calling the TestInputs obj's underlying member method code with example usage: obj.test_wrong_input_bits_exception(x) and returns: qml