antvaset.com
/
My blog
Say "Hello, World!" with Q#

Say "Hello, World!" with Q#

Creating a simple Q# console application.

Published on by Anton Vasetenkov

Released in 2017, Q# has since become one of the best known programming languages for quantum computing.

A simple Q# application

namespace HelloWorld {

    open Microsoft.Quantum.Canon;
    open Microsoft.Quantum.Intrinsic;
    
    @EntryPoint()
    operation PrintHelloWorld() : Unit {
        Message("Hello, World!");
    }
}

Output:

Hello, World!

See also

The Hadamard gate
The definition of the Hadamard gate and some of its properties.

Thanks for stopping by my digital playground! If you want to say hi, you can reach out to me on LinkedIn or via email. I'm always keen to chat and connect.

If you really-really like my work, you can support me by buying me a coffee.