- Microsoft’s quantum simulator, installed with the Quantum Development Kit, utilizes Advance Vector Extensions (AVX), and requires an AVX-enabled CPU. Intel processors shipped in Q1 2011 (Sandy Bridge) or later support AVX. We are evaluating support for earlier CPUs and may announce details at a later time.
- The simulator included with the Quantum Development Kit requires a 64-bit installation of Microsoft Windows to run.
- Visual Studio 2017
If you do not have Visual Studio installed, you can download Visual Studio 2017 Community Edition for free.
- Go to the Visual Studio download page.
- Click on the Visual Studio Community Free download button.
- Navigate to your browser’s download folder and double click on the executable file whose name begins with vs_community. The file name will contain a sequence of numbers that varies.
- Important! When you are presented with the option to select the tools for specific workloads, check the boxes for Universal Windows Platform development and .NET desktop development
- After selecting your workloads, click Install to complete the installation.
Creating the Q# Development Environment
- Install the Microsoft Quantum Development Kit
- Browse to the Microsoft Quantum page and click the Download now button in the upper left.
- On the Visual Studio Marketplace Quantum Development Kit page, click Download.
- Your browser will ask you whether you wish to Open or Save the download, click Open.
- Your security software may present a confirmation pane. Click Allow, or the comparable term used by your browser.
- The Quantum Development Kit extension will be installed in Visual Studio 2017.
Validating Your Environment
In this section you will clone the quantum samples & libraries, and run a sample application to verify that your Q# environment is correctly installed and configured.
- Clone the Microsoft Quantum Developer Kit Samples and Libraries GitHub repository.
- Open Visual Studio.
- Open the Connect view in Team Explorer (
- Select Clone under Local Git Repositories and enter
- Click Clone to clone the repo.
- The repository will be cloned on your local computer and Visual Studio will switch to the Solution Explorer on the right populated with the libraries and samples.
- Open the
- If prompted by the Install Missing Features pane, click Install to allow the installation of the necessary features. This is most often F# and tools used by some of the samples.
- Validate your Q# environment by running the teleport sample program:
- Right click on the
QsharpLibrariessolution, and left click on “Set as Startup Project”.
- Run the solution (F5.) If teleport runs and the output is similar to the following (has 8 rounds of successful teleportation with varying values True/False sent each round), your Q# environment is ready to support Q# development.
- Right click on the