Skip to main content

The Q# Programming Language

Follow instructions from The Q# Programming Language.

Install IQSharp

PS D:\projects\lthwqsharp> dotnet tool install -g Microsoft.Quantum.IQSharp
You can invoke the tool using the following command: dotnet-iqsharp
Tool 'microsoft.quantum.iqsharp' (version '0.6.1905.301') was successfully installed.

Check IQSharp Version

PS D:\projects\lthwqsharp> dotnet iqsharp --version
Language kernel: 0.6.1905.301
Jupyter core: 1.1.13141.0
PS D:\projects\lthwqsharp>

Install C# Template

PS D:\projects\lthwqsharp> dotnet new -i Microsoft.Quantum.ProjectTemplates
Install IQSharp

The First Hello Quantum World Program

PS D:\projects\lthwqsharp> dotnet new console -lang Q# -o helloQSharp
The template "Console Application" was created successfully.
PS D:\projects\lthwqsharp> cd .\helloQSharp\
PS D:\projects\lthwqsharp\ex1> dotnet run
Hello quantum world!
PS D:\projects\lthwqsharp\helloQSharp>
The First Hello Quantum World Program

Popular posts from this blog

Powershell: Test-NetConnection

PS C:\Users\tuyen> get-help Test-NetConnection NAME     Test-NetConnection SYNTAX     Test-NetConnection [[-ComputerName] <string>] [-TraceRoute] [-Hops <int>] [-InformationLevel {Quiet |     Detailed}]  [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] [-CommonTCPPort] {HTTP | RDP | SMB | WINRM}     [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] -Port <int> [-InformationLevel {Quiet | Detailed}]     [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] -DiagnoseRouting [-ConstrainSourceAddress <string>]     [-ConstrainInterface <uint32>] [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>] ALIASES     TNC REMARKS     Get-Help cannot find the Help files fo...

Learn MATLAB

MATLAB is an abbreviation for MAT rix LAB oratory. Here is list of free online courses to learn MATLAB.

Less secure app access in gmail or G Suite

From G Suite Update on December 16, 2019 Google turned off less secure app access to G Suite accounts .