Skip to content

Jupyter notebook walking through many features of BQSKit

Notifications You must be signed in to change notification settings

BQSKit/bqskit-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f1da156 · Sep 17, 2024

History

58 Commits
Sep 12, 2024
Sep 21, 2022
Sep 8, 2022
Sep 17, 2024
Sep 4, 2024
Aug 1, 2024
Sep 13, 2024
Sep 17, 2024
Sep 14, 2024
Sep 12, 2023

Repository files navigation

Berkeley Quantum Synthesis Toolkit Tutorial

The Berkeley Quantum Synthesis Toolkit (BQSKit) is a powerful and portable quantum compiler framework. This tutorial series first explores how to use BQSKit to compile quantum programs to efficient physical circuits for any QPU. Future parts will dive deeper into BQSKit's advanced features, teaching users how to design compiler workflows for their specific use cases.

Installation and Setup

This tutorial requires a recent version of Python (3.8+) to be installed alongside the following Python packages:

  • BQSKit
  • Qiskit
  • SciPy
  • Jupyter
  • OpenFermion

To install Python, visit their download page and follow the instructions for your system. The additional packages install easily on most platforms using Python's pip and venv:

The following lists the platform-specific instructions to set up Python with a virtual environment and install all packages. (Upgrading pip is always recommended but may not be necessary.)

Linux and Macs

Create and activate a virtual environment for Python, then install:

$ python3 -m venv TUTORIAL
$ source TUTORIAL/bin/activate
(TUTORIAL) $ python -m pip install --upgrade pip
(TUTORIAL) $ python -m pip install bqskit qiskit scipy jupyter openfermion

Windows

Install Python if not already available on your system. On a command prompt, create and setup a virtual environment, then install:

$ python3 -m venv TUTORIAL
$ TUTORIAL\Scripts\activate
(TUTORIAL) $ python -m pip install --upgrade pip
(TUTORIAL) $ python -m pip install bqskit qiskit scipy jupyter openfermion