quil

The quil package provides tools for constructing, manipulating, parsing, and printing Quil programs.

⚠️ This package is still in early development and breaking changes should be expected between minor versions.

 1"""The `quil` package provides tools for constructing, manipulating, parsing, and printing [Quil](https://github.com/quil-lang/quil) programs.
 2
 3⚠️ This package is still in early development and breaking changes should be expected between minor versions.
 4"""
 5
 6# The following code exposes the _quil package contents under the namespace quil.
 7from . import _quil
 8assert isinstance(_quil.__all__, list) and all(isinstance(s, str) for s in _quil.__all__)
 9exec(f"from ._quil import {', '.join(_quil.__all__)}; __all__ = {_quil.__all__}")
10del _quil
class QuilError(builtins.Exception):

Base exception type for errors raised by this package.

class ValueError(QuilError):

Raised when an argument to a quil function has an inappropriate value.

class ToQuilStringError(QuilError):

Errors which can occur when converting a Quil item to a string.

class PickleError(QuilError):

Errors when trying to pickle or deepcopy.