quil.validation.identifier

class IdentifierValidationError(quil.QuilError):

Errors that may occur when validating a Quil identifier.

def validate_identifier(ident: str) -> None:

Returns an error if the given identifier is not a valid Quil Identifier.

def validate_user_identifier(ident: str) -> None:

Returns an error if the given identifier is reserved, or if it is not a valid Quil identifier