EckherInsightsContact
Eckher
Your guide to what's next.
Eckher
Home › Eckher Insights › 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!

Cover
See also
The Hadamard gate
The definition of the Hadamard gate and some of its properties.
Eckher
Your guide to what's next.
Copyright © 2021 Eckher. Various trademarks held by their respective owners.