code: def from_pyquil(pyquil_program):
      """Loads pyQuil Program objects by using the converter in the
      PennyLane-Forest plugin.
  
      **Example:**
  
      >>> program = pyquil.Program()
      >>> program += pyquil.gates.H(0)
      >>> program += pyquil.gates.CNOT(0, 1)
      >>> my_circuit = qml.from_pyquil(program)
  
      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:
          pyquil_program (pyquil.Program): a program created in pyQuil
  
      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(pyquil_program, format="pyquil_program")
  
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 5 for calling a global function with example usage: from_pyquil(pyquil_program) and returns: load