class_docstr: Tests specific to the ControlledQubitUnitary operation
class_docstr_tok: ["Tests","specific","to","the","ControlledQubitUnitary","operation"]
docstr: Test if ControlledQubitUnitary properly handles invalid mixed-polarity
  control values.
docstr_tok: ["Test","if","ControlledQubitUnitary","properly","handles","invalid","mixed-polarity","control","values","."]
code: def test_mismatched_control_value_length(self):
      """Test if ControlledQubitUnitary properly handles invalid mixed-polarity
      control values."""
      control_wires = [0, 1]
      wires = 2
      control_values = "011"
      target_wires = Wires(wires)
  
      with pytest.raises(
          ValueError,
          match="control_values should be the same length as control_wires",
      ):
          qml.ControlledQubitUnitary(
              X,
              control_wires=control_wires,
              wires=target_wires,
              control_values=control_values,
          )
  
imports: import copy
  import numpy
  import pytest
  from scipy.linalg import fractional_matrix_power
  from scipy.sparse import csr_matrix
  from scipy.stats import unitary_group
  from gate_data import CY, CZ
  import pennylane
  from pennylane.wires import Wires
  from pennylane.operation import AnyWires
  from pennylane.ops.qubit.matrix_ops import QubitUnitary
label_desc: Use image node_id 9 for calling the TestControlledQubitUnitary obj's underlying member method code with example usage: obj.test_mismatched_control_value_length() without return types