class_docstr: Tests that the template defines the correct decomposition.
class_docstr_tok: ["Tests","that","the","template","defines","the","correct","decomposition","."]
docstr: Checks the queue for custom pattern for the entanglers.
docstr_tok: ["Checks","the","queue","for","custom","pattern","for","the","entanglers","."]
code: def test_custom_pattern(self):
      """Checks the queue for custom pattern for the entanglers."""
  
      features = list(range(3))
      pattern = [[0, 2], [0, 1]]
      expected_names = [
          "Hadamard",
          "RZ",
          "Hadamard",
          "RZ",
          "Hadamard",
          "RZ",
          "MultiRZ",
          "MultiRZ",
          "MultiRZ",
      ]
      expected_wires = [[0], [0], [1], [1], [2], [2], *pattern]
  
      op = qml.IQPEmbedding(features, wires=range(3), pattern=pattern)
      tape = op.expand()
  
      for i, gate in enumerate(tape.operations):
          assert gate.name == expected_names[i]
          assert gate.wires.labels == tuple(expected_wires[i])
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 4 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_custom_pattern() without return types