HomeProjectsBlogContact
Made with ❤️ by Anton Vasetenkov
Say "Hello, World!" with Q#
Jun 5, 2021

Say "Hello, World!" with Q#

Creating a simple Q# console application.

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.