Microsoft Quantum Development Kitのインストール
環境
$ lsb_release -d Description: Ubuntu 18.04.2 LTS
参照サイト
https://docs.microsoft.com/en-us/quantum/install-guide/command-line?view=qsharp-preview
手順
参照サイトに書いてあるとおりにインストールします。
- .NET Core SDK 2.0以上(Build Appsの方)を.NET downloads pageからインストール
$ dotnet new -i Microsoft.Quantum.ProjectTemplates
を実行
これですべてのインストールが完了。
動作確認
参照サイトに書いてあるとおりに動作確認してみる。
$ git clone https://github.com/Microsoft/Quantum.git $ cd Quantum/Samples/src/Teleportation/ $ dotnet run Round 0: Sent True, got True. Teleportation successful!! Round 1: Sent False, got False. Teleportation successful!! Round 2: Sent True, got True. Teleportation successful!! Round 3: Sent False, got False. Teleportation successful!! Round 4: Sent False, got False. Teleportation successful!! Round 5: Sent True, got True. Teleportation successful!! Round 6: Sent True, got True. Teleportation successful!! Round 7: Sent True, got True. Teleportation successful!!
テレポーテーションのシミュレーションをしているのかなぁ。