class_docstr: Tests specific to the ControlledQubitUnitary operation
class_docstr_tok: ["Tests","specific","to","the","ControlledQubitUnitary","operation"]
docstr: Test the _controlled method for ControlledQubitUnitary.
docstr_tok: ["Test","the","_controlled","method","for","ControlledQubitUnitary","."]
code: def test_controlled(self):
      """Test the _controlled method for ControlledQubitUnitary."""
  
      U = qml.PauliX(0).compute_matrix()
  
      original = qml.ControlledQubitUnitary(
          U, control_wires=(0, 1), wires=4, control_values="01"
      )
      expected = qml.ControlledQubitUnitary(
          U, control_wires=(0, 1, "a"), wires=4, control_values="011"
      )
  
      out = original._controlled(
          "a"
      )  # pylint: disable=protected-access
      assert qml.equal(out, expected)
  
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 18 for calling the TestControlledQubitUnitary obj's underlying member method code with example usage: obj.test_controlled() without return types