November 27, 2019

[NOTE] Win10 - get the full message for "Unauthorized changes blocked"

Event Viewer > Application and Services > Microsoft > Windows > Windows Defender > Operational

Get the full message using PowerShell:

> Get-WinEvent -FilterHashtable @{logname=’Microsoft-Windows-Windows Defender/Operational’; id=1123} | Select-Object Message

November 9, 2019

[Quantum Computer] Getting Started: QISKit SDK

Qiskit is developed by IBM.
https://qiskit.org/

This note is to show how to install Qiskit on Win10, run the simulator locally.

Installation note
https://developer.ibm.com/code/2017/05/17/developers-guide-to-quantum-qiskit-sdk/
https://qiskit.org/documentation/install.html

Requirements:

  • Windows
  •  Anaconda

Create environment

> conda create --name qiskit python=3
> activate qiskit
> pip install -U pip


Install dependent packages

> conda install blas
> conda install mkl
> conda install scipy


Install Qiskit

> pip uninstall qiskit
> pip install qiskit
> pip install qiskit-terra[visualization]



Unlike QDK, Qiskit is Python, which is a big plus -- no need to learn new language.

November 8, 2019

[Quantum Computer] Getting Started: QDK

This is just a note on installing QDK, Python, Jupyter on Windows.

QDK is Microsoft Quantum Development Kit.
https://www.microsoft.com/en-us/quantum/development-kit

Installation steps are here, https://docs.microsoft.com/en-us/quantum/install-guide/

But I had some minor trouble installing it, so this is the note.

Requirements:
  • Win10
  • Anaconda

[1] Install .NET package, 2.2.0


First, check if you have DOT NET package installed.  Do where dotnet and see if dotnet command is available.

If not, go to this site and install 2.2.  It's Important that current QDK requires 2.2.x version.
https://dotnet.microsoft.com/download/dotnet-core

Check if you have the right version:

> dotnet --list-sdks
2.2.402 [C:\Program Files\dotnet\sdk]
3.0.100 [C:\Program Files\dotnet\sdk]

As shown above, I have 2.2.402 installed.

Now install .NET tools:

> dotnet tool install -g Microsoft.Quantum.IQSharp
> dotnet iqsharp install

[2] Anaconda + Python + Jupyter

Run Anaconda and create environment, 'qsharp':

> conda create --name qsharp
> conda activate qsharp

Create workspace directory

> cd /d e:\dev\code\
> mkdir qsharp
> cd qhsharp

And install jupyter and qsharp

> conda install jupyter
> pip install qsharp
> conda install ipykernel

Check if qsharp kernel is installed:

> jupyter kernelspec list
Available kernels:
  python3    C:\opt\Anaconda3\envs\qsharp\share\jupyter\kernels\python3
  iqsharp    C:\ProgramData\jupyter\kernels\iqsharp


Run jupyter notebook:

> jupyter notebook


This is just to show you installing QDK with right .NET version with Jupyter.  Jupyter can be utilize the notebook, but I don't see much benefit of using Jupyter in this case.  VS or VS code would be better choice as you still have to write the code in Q#.

There are a lot of docs and examples of Q# -- this is a big plus for learning.
Next time, I'll put some notes on VS, VS code and Q#.