Expand description
Prelude extension - available in all contexts, defining common types, operations and constants.
Modules§
- generic
- Operation to load generic bounded nat parameter.
Structs§
- Barrier
- A barrier across a row of values. This operation has no effect on the values, except to enforce some ordering between operations before and after the barrier.
- Barrier
Def - A barrier operation definition.
- Const
Error - Structure for holding constant error types.
- Const
External Symbol - A structure for holding references to external symbols.
- Const
String - Structure for holding constant string values.
- Const
Usize - Structure for holding constant usize values.
- Make
Tuple - An operation that packs all its inputs into a tuple.
- Noop
- A no-op operation.
- NoopDef
- A no-op operation definition.
- PRELUDE
- Prelude extension, containing common types and operations.
- PRELUDE_
REGISTRY - An extension registry containing only the prelude
- Tuple
OpDef Iter - An iterator over the variants of TupleOpDef
- Unpack
Tuple - An operation that unpacks a tuple into its components.
Enums§
- Tuple
OpDef - Logic extension operation definitions.
Constants§
- BARRIER_
OP_ ID - Name of the barrier operation.
- DEFAULT_
ERROR_ SIGNAL - Default error signal.
- ERROR_
TYPE_ NAME - The string name of the error type.
- EXIT_
OP_ ID - Name of the prelude exit operation.
- MAKE_
ERROR_ OP_ ID - Name of the prelude
MakeError
operation. - NOOP_
OP_ ID - Name of the no-op operation.
- PANIC_
OP_ ID - Name of the prelude panic operation.
- PRELUDE_
ID - Name of prelude extension.
- PRINT_
OP_ ID - Name of the print operation
- STRING_
TYPE_ NAME - Name of the string type.
- VERSION
- Extension version.
Traits§
- Unwrap
Builder - Extend dataflow builders with methods for building unwrap operations.
Functions§
- bool_t
- Boolean type - Sum of two units.
- const_
fail - A constant Either value with a failure variant.
- const_
fail_ tuple - A constant Either with a row of failure values.
- const_
left - A constant Either value with a left variant.
- const_
left_ tuple - A constant Either value with a row of left values.
- const_
none - A constant optional value with no value.
- const_
ok - A constant Either value with a success variant.
- const_
ok_ tuple - A constant Either with a row of success values.
- const_
right - A constant Either value with a right variant.
- const_
right_ tuple - A constant Either value with a row of right values.
- const_
some - A constant optional value with a given value.
- const_
some_ tuple - A constant optional value with a row of values.
- either_
type - An “either” type, i.e. a Sum type with a “left” and a “right” variant.
- error_
type - Unspecified opaque error type.
- option_
type - An optional type, i.e. a Sum type with the second variant as the given type and the first as an empty tuple.
- qb_t
- Qubit type.
- string_
type - String type.
- sum_
with_ error - Return a Sum type with the second variant as the given type and the first an Error.
- usize_t
- Unsigned size type.