Microsoft.Quantum.Core namespace

Warning

This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.

Please see https://aka.ms/qdk.api for the API documentation for the Modern QDK.

This namespace includes Q# core functions and operations.

Functions

Name Summary
Default > [!WARNING]
Length Returns the number of elements in an array.
RangeEnd Returns the defined end value of the given range, which is not necessarily the last element in the sequence.
RangeReverse Returns a new range which is the reverse of the input range.
RangeStart Returns the defined start value of the given range.
RangeStep Returns the integer that specifies how the next value of a range is calculated.

User-defined types

Name Summary
Attribute Compiler-recognized attribute used to mark user-defined types as attributes.
Deprecated Compiler-recognized attribute used to mark a type or callable as deprecated.
EntryPoint Compiler-recognized attribute used to mark the entry point of an executable.
Inline Compiler-recognized attribute used during QIR emission to determine when callables should be inlined, if possible.