Measures Concepts
GitHub icon

Q#

Q# - Programming language

< >

Q# is a programming language created in 2017.

#1087on PLDB 7Years Old 768Repos

Try now: Riju


Example from Riju:
namespace main { open Microsoft.Quantum.Canon; open Microsoft.Quantum.Intrinsic; @EntryPoint() operation Main() : Unit { Message("Hello, world!"); } }
Example from hello-world:
namespace Quantum.HelloWorld { open Microsoft.Quantum.Canon; open Microsoft.Quantum.Intrinsic; operation HelloWorld() : Unit { Message("Hello World"); } }
namespace open as operation function body adjoint newtype controlled if elif else repeat until fixup for in while return fail within apply Adjoint Controlled Adj Ctl is self auto distribute invert intrinsic let set w/ new not and or use borrow using borrowing mutable

Language features

Feature Supported Token Example
Conditionals ✓
Functions ✓
While Loops ✓
Comments ✓
// A comment
Line Comments ✓ //
// A comment
Strings ✓ "

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout