class_docstr: Tests the built-in patterns ("single", "ring", etc) of the broadcast template constructor.
class_docstr_tok: ["Tests","the","built-in","patterns","(","``","single","''",",","``","ring","''",",","etc",")","of","the","broadcast","template","constructor","."]
docstr: Tests that gate queue has correct parameters.
docstr_tok: ["Tests","that","gate","queue","has","correct","parameters","."]
code: def test_correct_parameters_in_queue(
      self, pattern, n_wires, gate, parameters
  ):
      """Tests that gate queue has correct parameters."""
  
      with qml.tape.OperationRecorder() as rec:
          broadcast(
              unitary=gate,
              pattern=pattern,
              wires=range(n_wires),
              parameters=parameters,
          )
  
      for target_par, g in zip(parameters, rec.queue):
          assert g.parameters == target_par
  
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 5 for calling the TestBuiltinPatterns obj's underlying member method code with example usage: obj.test_correct_parameters_in_queue(pattern, n_wires, gate, parameters) without return types