Skip to content

Commit

Permalink
Psgs integration (#32)
Browse files Browse the repository at this point in the history
* Basic setup

* Integrate utility for paulipolynomials

* Add logic representing pauli polynomials

* Cleanup of toplevel files

* Create basic infrastructure for synthesis algorithms

* Test basic infrastructure

* Add in most relevant synthesis algorithms

* Smaller fixes

* Adds in X, Y and Z to preprend of a tableau

Signed-off-by: David Winderl <[email protected]>

* Note the clifford application on gates rather than on a tableau

* Use propagation rules for propagating a pauli into a clifford

* Reformat pauliopt

* Fix PR

Signed-off-by: David Winderl <[email protected]>

Removes append_pauli gadegt

must me -> must be

Change type to float constructor

Signed-off-by: David Winderl <[email protected]>

Clifford clifford -> Clifford Tableau

Signed-off-by: David Winderl <[email protected]>

Removes redundant if condition

Signed-off-by: David Winderl <[email protected]>

Fix unit tests and pipeline

Signed-off-by: David Winderl <[email protected]>

Fix tests

Signed-off-by: David Winderl <[email protected]>

* Remove python 3.9 and add in 3.10, 3.11 and 3.12

Signed-off-by: David Winderl <[email protected]>

* Small change

* Fix PR

---------

Signed-off-by: David Winderl <[email protected]>
Co-authored-by: Richie Yeung <[email protected]>
  • Loading branch information
daehiff and y-richie-y authored Sep 22, 2024
1 parent 6798e19 commit 3fff2d9
Show file tree
Hide file tree
Showing 52 changed files with 3,011 additions and 26,825 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10" ]
python-version: [ "3.10", "3.11", "3.12" ]
outputs:
error-check: ${{ steps.error-check.conclusion }}
steps:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ ipython_config.py

# pyenv
.python-version
.python-base-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
Expand Down Expand Up @@ -131,3 +132,4 @@ dmypy.json

.vscode
.DS_Store
.idea
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
clean_setup:
pyenv virtualenv-delete -f $(shell cat .python-version)
pyenv virtualenv $(shell cat .python-base-version) $(shell cat .python-version)
#make setup
setup:
pip install -r requirements-dev.txt
run_tests:
python -m unittest discover -s ./tests/ -p "test_*.py"
upgrade_dependencies:
pip-compile --allow-unsafe --no-annotate requirements-dev.in --upgrade
pip-compile --allow-unsafe --no-annotate requirements.in --upgrade
2 changes: 1 addition & 1 deletion docs/search.js

Large diffs are not rendered by default.

Loading

0 comments on commit 3fff2d9

Please sign in to comment.