Skip to content

Code for the lecture on simulation of quantum processors - QDCS Master

Notifications You must be signed in to change notification settings

smartiel/code_qps_qdccs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

For the introduction (first lecture)

We will fill up the notebook in the folder notebooks. It simply requires numpy: you can either install it "globally":

python3 -m pip install numpy opt_einsum networkx

or create a virtualenv and install it

virtualenv dev_env
source dev_env/bin/activate
python3 -m pip install numpy opt_einsum networkx

A quantum circuit simulation library

The code is already packaged. First create and activate a virtualenv :

virtualenv dev_env
source dev_env/bin/activate

Then install the package in place (dirty but efficient):

python -m pip install -e .

Testing

You can run the tests using the following command line (requires pytest):

python -m pytest tests/testing.py

In order to restrict tests to a single simulator you can use the -k option:

python -m pytest tests/testing.py -k Direct

You can cumulate filters. The following line will run test uniform_distrib_n for simulator Direct and restricted to n=3.

python -m pytest tests/testing.py -k "Direct and uniform_distrib_n and 3"

Development

We will develop (at least) three simulators, each in its own file (under src/qps)

I strongly recommend to use vscode :)

About

Code for the lecture on simulation of quantum processors - QDCS Master

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •