class_docstr: Tests for the ControlledQutritUnitary operation
class_docstr_tok: ["Tests","for","the","ControlledQutritUnitary","operation"]
docstr: Test if ControlledQutritUnitary raises an error if control wires are shared with wires
docstr_tok: ["Test","if","ControlledQutritUnitary","raises","an","error","if","control","wires","are","shared","with","wires"]
code: def test_shared_control(self):
      """Test if ControlledQutritUnitary raises an error if control wires are shared with wires"""
      with pytest.raises(
          ValueError,
          match="The control wires must be different from the wires",
      ):
          qml.ControlledQutritUnitary(
              U_thadamard_01, control_wires=[0, 2], wires=2
          )
  
imports: import pytest
  import numpy
  from scipy.stats import unitary_group
  from gate_data import TSWAP
  import pennylane
  from pennylane.wires import Wires
  from pennylane.operation import DecompositionUndefinedError
label_desc: Use image node_id 2 for calling the TestControlledQutritUnitary obj's underlying member method code with example usage: obj.test_shared_control() without return types