Standard LibraryΒΆ

Welcome to the Guppy standard library. The Standard library provides a toolbox of functions and data structures to be used in Guppy programs. Standard library builtins are to be used within Guppy functions or structs annotated with the @guppy decorator. This distinguishes the guppylang.std module from other Guppy modules like guppy.emulator and guppy.definition which define classes and functions to be used in the outer Python scope.

angles

Guppy standard module for dyadic rational angles.

array

Utilities for fixed-size arrays, denoted array[T, n], for element type T and compile-time constant size n.

bool

Operations on booleans.

builtins

Reexports core types and functions that are available without an explicit import.

lang

Provides Python objects for builtin language keywords.

collections

debug

Guppy standard module for debug functionality.

either

Union of two types.

futures

iter

Utilities for iteration over collections of values.

list

EXPERIMENTAL: The list type

mem

Utilities for advanced usage of ownership and borrowing.

num

Numeric types and methods.

option

platform

Platform functions.

qsystem

quantum

Guppy standard module for quantum operations.

quantum_functional

Deprecated: Use guppylang.std.quantum.functional instead.

reflection

Utilities for compile-time reflection.

string

The string type.