class_docstr: Tests operations are placed into layers correctly.
class_docstr_tok: ["Tests","operations","are","placed","into","layers","correctly","."]
docstr: Tests positions when multiple gates are all in the same layer.
code: def test_single_layer_multiple_wires(self):
      """Tests positions when multiple gates are all in the same layer."""
  
      with qml.queuing.AnnotatedQueue() as q_tape:
          qml.PauliX(0)
          qml.PauliX(1)
          qml.PauliX(2)
  
      tape = QuantumScript.from_queue(q_tape)
      _, ax = tape_mpl(tape)
  
      # As layers are stored in sets, we don't know the
      # order operations are added to ax.
      # So we check that each rectangle is in ``patches``
      # independent of order
      boxes_x = [p.get_x() for p in ax.patches]
      boxes_y = [p.get_y() for p in ax.patches]
      for wire in range(3):
          assert -self.width / 2.0 in boxes_x
          assert wire - self.width / 2.0 in boxes_y
  
      for t in ax.texts[3:]:
          assert t.get_text() == "X"
      plt.close()
  
imports: import pytest
  import pennylane
  from pennylane.drawer import tape_mpl
  from pennylane.tape import QuantumScript
label_desc: Use image node_id 1 for calling the TestLayering obj's underlying member method code with example usage: obj.test_single_layer_multiple_wires() without return types