class_docstr: Additional tests for using broadcast with a custom pattern.
class_docstr_tok: ["Additional","tests","for","using","broadcast","with","a","custom","pattern","."]
docstr: Tests the output for simple cases.
docstr_tok: ["Tests","the","output","for","simple","cases","."]
code: def test_correct_output(self, custom_pattern, expected):
      """Tests the output for simple cases."""
  
      dev = qml.device("default.qubit", wires=4)
  
      @qml.qnode(dev)
      def circuit():
          broadcast(
              unitary=qml.PauliX, wires=range(4), pattern=custom_pattern
          )
          return [qml.expval(qml.PauliZ(w)) for w in range(4)]
  
      res = circuit()
      assert np.allclose(res, expected)
  
imports: from math import pi
  import pytest
  import numpy
  import pennylane
  from pennylane.templates import broadcast
  from pennylane.ops import RX, RY, T, S, Rot, CRX, CRot, CNOT
  from pennylane.templates.broadcast import wires_pyramid, wires_all_to_all, wires_ring
  from pennylane.wires import Wires
label_desc: Use image node_id 2 for calling the TestCustomPattern obj's underlying member method code with example usage: obj.test_correct_output(custom_pattern, expected) and returns: unknown