code: def from_quil(quil: str):
      """Loads quantum circuits from a Quil string using the converter in the
      PennyLane-Forest plugin.
  
      **Example:**
  
      .. code-block:: python
  
          >>> quil_str = 'H 0\\n'
          ...            'CNOT 0 1'
          >>> my_circuit = qml.from_quil(quil_str)
  
      The ``my_circuit`` template can now be used within QNodes, as a
      two-wire quantum template.
  
      >>> @qml.qnode(dev)
      >>> def circuit(x):
      >>>     qml.RX(x, wires=1)
      >>>     my_circuit(wires=(1, 0))
      >>>     return qml.expval(qml.PauliZ(0))
  
      Args:
          quil (str): a Quil string containing a valid quantum circuit
  
      Returns:
          pennylane_forest.ProgramLoader: a ``pennylane_forest.ProgramLoader`` instance that can
          be used like a PennyLane template and that contains additional inspection properties
      """
      return load(quil, format="quil")
  
file_path: pennylane/pennylane/io.py
imports: from collections import defaultdict
  from importlib import metadata
  from sys import version_info
label_desc: Use image node_id 6 for calling a global function with example usage: from_quil(quil) and returns: load