code: def pyquil_to_image(program: pyquil.Program) -> PIL.Image:  # pragma: no cover
      
      circ = pyquil_to_circuit(program)
      latex = circuit_to_latex(circ)
      img = render_latex(latex)
      return img
docs: Returns an image of a pyquil circuit.
  
      See circuit_to_latex() for more details.