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

Install Microsoft .NET Core SDK

.NET Core Software Development Kit (SDK) is a set of libraries and tools that allow developers to create .NET Core applications and libraries.

How to charge your device from USB Port

First of all, check BIOS Settings of your laptop or desktop Dell Look for USB PowerShare BIOS Settings: USB PowerShare Lenovo Look for Always On USB Charge in Off Mode BIOS Settings: Enable Always On USB Charge in Off Mode

Kali Linux on Raspberry Pi 2

Download Kali Linux for Raspberry Pi 2 Use xzcat to decompress and then dd to image Kali Linux to microSD on Windows 10. or use 7-zip to extract kali-linux-2019.1-rpi3-nexmon.img image file, then use rufus to write image to microSD card Login Kali Linux with default username root and password toor Tight VNC Server root@kali:~# apt install tightvncserver root@kali:~# vncserver :1 You will require a password to access your desktops. Password: Warning: password truncated to the length of 8. Verify: Would you like to enter a view-only password (y/n)? n xauth: file /root/.Xauthority does not exist New 'X' desktop is kali:1 Creating default startup script /root/.vnc/xstartup Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/kali:1.log root@kali:~# Kill vncserver root@kali:~# vncserver -kill :1 Killing Xtightvnc process ID 16102 root@kali:~#