Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

Q#

Q# - Programming language

< >

Q# is a programming language created in 2017.

#1060on PLDB 6Years Old 0Books
0Papers 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"); } }

Keywords in Q#

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 ✓ "
krl.html · q-sharp.html · hashlink.html

View source

- Build the next great programming language · Search · Day 212 · About · Blog · Acknowledgements · Traffic · Traffic Today · GitHub · feedback@pldb.com