class_docstr: Test that all operations in the ``supports_broadcasting`` attribute
  actually support broadcasting.
docstr: Test that single-scalar-parameter operations on a single wire marked
  as supporting parameter broadcasting actually do support broadcasting.
docstr_tok: ["Test","that","single-scalar-parameter","operations","on","a","single","wire","marked","as","supporting","parameter","broadcasting","actually","do","support","broadcasting","."]
code: def test_single_scalar_single_wire_ops(self, name):
      """Test that single-scalar-parameter operations on a single wire marked
      as supporting parameter broadcasting actually do support broadcasting.
      """
      par = np.array([0.25, 2.1, -0.42])
      wires = ["wire0"]
  
      cls = getattr(qml, name)
      op = cls(par, wires=wires)
  
      mat1 = op.matrix()
      mat2 = cls.compute_matrix(par)
      single_mats = [cls(p, wires=wires).matrix() for p in par]
  
      assert qml.math.allclose(mat1, single_mats)
      assert qml.math.allclose(mat2, 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 2 for calling the TestSupportsBroadcasting obj's underlying member method code with example usage: obj.test_single_scalar_single_wire_ops(name) without return types