class_docstr: Test that all operations in the ``supports_broadcasting`` attribute
  actually support broadcasting.
docstr: Test that ControlledQubitUnitary, which is marked as supporting parameter broadcasting,
  actually does support broadcasting.
docstr_tok: ["Test","that","ControlledQubitUnitary",",","which","is","marked","as","supporting","parameter","broadcasting",",","actually","does","support","broadcasting","."]
code: def test_controlled_qubit_unitary(self):
      """Test that ControlledQubitUnitary, which is marked as supporting parameter broadcasting,
      actually does support broadcasting."""
  
      U = np.array(
          [
              unitary_group.rvs(4, random_state=state)
              for state in [91, 1, 4]
          ]
      )
      wires = [0, "9"]
  
      op = qml.ControlledQubitUnitary(
          U, wires=wires, control_wires=[1, "10"]
      )
  
      mat1 = op.matrix()
      single_mats = [
          qml.ControlledQubitUnitary(
              _U, wires=wires, control_wires=[1, "10"]
          ).matrix()
          for _U in U
      ]
  
      assert qml.math.allclose(mat1, single_mats)
  
imports: import itertools
  import pytest
  import numpy
  from scipy.stats import unitary_group
  import pennylane
  from pennylane.ops.qubit.attributes import Attribute, has_unitary_generator
  from pennylane.operation import AnyWires
label_desc: Use image node_id 8 for calling the TestSupportsBroadcasting obj's underlying member method code with example usage: obj.test_controlled_qubit_unitary() without return types