Notă
Accesul la această pagină necesită autorizare. Puteți încerca să vă conectați sau să modificați directoarele.
Accesul la această pagină necesită autorizare. Puteți încerca să modificați directoarele.
Use the Q# language reference to look up syntax and language rules.
Program structure
Learn how to organize Q# code and declare types, functions, and operations. For an example program, see Program execution.
Statements
Learn about variable declarations, qubit allocations, and variable scope rules in Statements.
Expressions
For the rules that govern expressions, see Expressions.
- Precedence and associativity
- Copy-and-update expressions
- Conditional expressions
- Comparative expressions
- Logical expressions
- Bitwise expressions
- Arithmetic expressions
- Concatenation
- Functor application
- Item access
- Call expressions
- Returns and termination
- Iterations
- Conditional loops
- Conditional branching
- Conjugations
- Closures
- Contextual and omitted expressions
- Literals
Type system
For available types and the rules that govern them, see Type System.