Questions Columns Rows
GitHub icon

Q#

Q# - Programming language

< >

Q# is a programming language created in 2017.

#1085on PLDB 6Years 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 · Stats · Sponsor · Traffic · Traffic Today · Day 277 · feedback@pldb.com · Logout