Skip to content

Commit

Permalink
remove(submodule=pennylane): Removing pennylane
Browse files Browse the repository at this point in the history
The benchmarking using pennylane
- is rarely used;
- seems to be flaky on the CI;
- there's an extra complexity to manage it;
- any benchmarking using pennylane should be done in the
  pennylane-piquasso plugin.

For these reasons, the pennylane submodule with the benchmark got
deleted.
  • Loading branch information
kolarovszki-elte committed Feb 10, 2021
1 parent 60fa8f1 commit b6e3261
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 30 deletions.
16 changes: 0 additions & 16 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ stages:
- build

unittest:
variables:
GIT_SUBMODULE_STRATEGY: none
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "push"'
stage: test
Expand All @@ -22,30 +20,18 @@ unittest:
expire_in: 15 days

benchmark:
variables:
GIT_SUBMODULE_STRATEGY: normal #to use submodule
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "push"'
stage: test
script:
- apt update
- apt-get install libeigen3-dev
- poetry install
- cd pennylane/benchmark/
- echo "Pennylane benchmark"
- poetry run python benchmark.py -d default.qubit time bm_entangling_layers > ./output.txt
- cd ../../
- echo "Piquasso vs. StrawberryFields vacuum homodyne benchmark"
- poetry run python benchmarks/homodyne.py
artifacts:
paths:
- pennylane/benchmark/output.txt
expire_in: 15 days

generatewebpage: #`pages` kellene ha szeretnenk gitlab pages-t
stage: build
variables:
GIT_SUBMODULE_STRATEGY: none
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "push"'
script:
Expand All @@ -61,8 +47,6 @@ generatewebpage: #`pages` kellene ha szeretnenk gitlab pages-t

buildpackage:
stage: build
variables:
GIT_SUBMODULE_STRATEGY: none
script:
- poetry config repositories.gitlab https://gitlab.inf.elte.hu/api/v4/projects/73/packages/pypi
- poetry build
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,6 @@ https://gitlab.inf.elte.hu/wigner-rcp-quantum-computing-and-information-group/pi
References:
- https://gitlab.inf.elte.hu/help/user/packages/pypi_repository/index.md

## Benchmarking

We can run benckmarks with various pennylane devices, for more details see:
https://github.com/XanaduAI/pennylane/blob/master/benchmark/README.rst
For instance:
```
cd pennylane/benchmark/
poetry run python benchmark.py -d default.qubit time bm_entangling_layers
```
### Notes:
Unfortunatelly running `benchmark.py` with `bm_mutable_rotations` or
`bm_mutable_complicated_params` will not work. There is a bug in both of these
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ isolated_build = True
whitelist_externals = poetry
commands =
poetry install -v
poetry run coverage run -m pytest --ignore pennylane
poetry run flake8 --exclude='pennylane,.tox,.venv'
poetry run coverage run -m pytest
poetry run flake8 --exclude='.tox,.venv'
poetry run coverage xml --omit='.tox/*','*/tests/*'
poetry run coverage erase

Expand Down

0 comments on commit b6e3261

Please sign in to comment.