https://github.com/ProjectQ-Framework/ProjectQ

sort by:
Revision Author Date Message Commit Date
f26198a Merge pull request #469 from ProjectQ-Framework/pre-commit-ci-update-config [pre-commit.ci] pre-commit autoupdate 02 April 2024, 20:28:54 UTC
088c973 Update CHANGELOG 02 April 2024, 20:20:32 UTC
3897613 [pre-commit.ci] pre-commit autoupdate updates: - [github.com/Lucas-C/pre-commit-hooks: v1.5.4 → v1.5.5](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.5.4...v1.5.5) - [github.com/adrienverge/yamllint.git: v1.33.0 → v1.35.1](https://github.com/adrienverge/yamllint.git/compare/v1.33.0...v1.35.1) - [github.com/asottile/pyupgrade: v3.15.0 → v3.15.2](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.15.2) - [github.com/psf/black: 23.12.1 → 24.3.0](https://github.com/psf/black/compare/23.12.1...24.3.0) - [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0) 25 March 2024, 19:18:41 UTC
dad48c5 [pre-commit.ci] pre-commit autoupdate (#459) * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) - [github.com/Lucas-C/pre-commit-hooks: v1.4.2 → v1.5.4](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.4.2...v1.5.4) - [github.com/codespell-project/codespell: v2.2.2 → v2.2.6](https://github.com/codespell-project/codespell/compare/v2.2.2...v2.2.6) - [github.com/adrienverge/yamllint.git: v1.29.0 → v1.33.0](https://github.com/adrienverge/yamllint.git/compare/v1.29.0...v1.33.0) - [github.com/asottile/pyupgrade: v3.3.1 → v3.15.0](https://github.com/asottile/pyupgrade/compare/v3.3.1...v3.15.0) - [github.com/PyCQA/isort: 5.12.0 → 5.13.2](https://github.com/PyCQA/isort/compare/5.12.0...5.13.2) - [github.com/psf/black: 23.1.0 → 23.12.1](https://github.com/psf/black/compare/23.1.0...23.12.1) - [github.com/asottile/blacken-docs: 1.13.0 → 1.16.0](https://github.com/asottile/blacken-docs/compare/1.13.0...1.16.0) - [github.com/PyCQA/flake8: 5.0.4 → 6.1.0](https://github.com/PyCQA/flake8/compare/5.0.4...6.1.0) * Temporary disable Azure Quantum backend * Fix CI issues * Fix CI issues with GCC build * Fix typos * Use virtualenv for GCC and Clang builds * Update CHANGELOG * Fix failing CI tests * Fix failing CI tests * Fix pre-commit issues + remove distutils.log * Temporary disable step in failing CI job --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 07 January 2024, 16:05:07 UTC
c30dfec Bump thomaseizinger/create-pull-request from 1.3.0 to 1.3.1 (#464) * Bump thomaseizinger/create-pull-request from 1.3.0 to 1.3.1 Bumps [thomaseizinger/create-pull-request](https://github.com/thomaseizinger/create-pull-request) from 1.3.0 to 1.3.1. - [Release notes](https://github.com/thomaseizinger/create-pull-request/releases) - [Changelog](https://github.com/thomaseizinger/create-pull-request/blob/master/CHANGELOG.md) - [Commits](https://github.com/thomaseizinger/create-pull-request/compare/1.3.0...1.3.1) --- updated-dependencies: - dependency-name: thomaseizinger/create-pull-request dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Update CHANGELOG --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 07 January 2024, 15:16:55 UTC
cdb4d04 Bump docker/setup-qemu-action from 2 to 3 (#466) Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2 to 3. - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v3) --- updated-dependencies: - dependency-name: docker/setup-qemu-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 07 January 2024, 15:16:25 UTC
8cc782b Update README.rst (#467) * Update README.rst fix imports in README example * Update CHANGELOG.md 07 January 2024, 15:15:58 UTC
67c660c Fix typo in compiler_tutorial.ipynb (#460) * Fix typo in compiler_tutorial.ipynb documention -> documentation * Update CHANGELOG --------- Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 09 March 2023, 16:03:57 UTC
9259445 Update GitHub workflows to work with merge queues (#461) 09 March 2023, 16:01:56 UTC
439ffd5 [pre-commit.ci] pre-commit autoupdate (#458) * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 22.12.0 → 23.1.0](https://github.com/psf/black/compare/22.12.0...23.1.0) - [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](https://github.com/PyCQA/flake8/compare/5.0.4...6.0.0) * Update CHANGELOG and keep flake8 5.0.4 for pre-commit hooks * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Damien Nguyen <ngn.damien@gmail.com> 06 February 2023, 22:14:15 UTC
9f21982 Bump thomaseizinger/create-pull-request from 1.2.2 to 1.3.0 (#456) * Bump thomaseizinger/create-pull-request from 1.2.2 to 1.3.0 Bumps [thomaseizinger/create-pull-request](https://github.com/thomaseizinger/create-pull-request) from 1.2.2 to 1.3.0. - [Release notes](https://github.com/thomaseizinger/create-pull-request/releases) - [Changelog](https://github.com/thomaseizinger/create-pull-request/blob/master/CHANGELOG.md) - [Commits](https://github.com/thomaseizinger/create-pull-request/compare/1.2.2...1.3.0) --- updated-dependencies: - dependency-name: thomaseizinger/create-pull-request dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update CHANGELOG --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 30 January 2023, 23:03:48 UTC
4b27833 [pre-commit.ci] pre-commit autoupdate (#455) * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0) - [github.com/Lucas-C/pre-commit-hooks: v1.3.1 → v1.4.2](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.3.1...v1.4.2) - [github.com/pycqa/pydocstyle: 6.1.1 → 6.3.0](https://github.com/pycqa/pydocstyle/compare/6.1.1...6.3.0) - https://github.com/PyCQA/doc8/: v1.0.0 → v1.1.1 - [github.com/adrienverge/yamllint.git: v1.28.0 → v1.29.0](https://github.com/adrienverge/yamllint.git/compare/v1.28.0...v1.29.0) - [github.com/asottile/pyupgrade: v3.2.0 → v3.3.1](https://github.com/asottile/pyupgrade/compare/v3.2.0...v3.3.1) - [github.com/PyCQA/isort: 5.10.1 → 5.12.0](https://github.com/PyCQA/isort/compare/5.10.1...5.12.0) - [github.com/psf/black: 22.10.0 → 22.12.0](https://github.com/psf/black/compare/22.10.0...22.12.0) - [github.com/asottile/blacken-docs: v1.12.1 → 1.13.0](https://github.com/asottile/blacken-docs/compare/v1.12.1...1.13.0) - [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](https://github.com/PyCQA/flake8/compare/5.0.4...6.0.0) - [github.com/mgedmin/check-manifest: 0.48 → 0.49](https://github.com/mgedmin/check-manifest/compare/0.48...0.49) * Update CHANGELOG and keep Flake8 5.X * Disable `no-member` Pylint warning on pre-commit CI * Fix failing GitHub workflows * Proper fix for Clang-10 workflow * New attempt at fixing build for Clang-10 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add Git workaround on all container workflows * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix Clang-10 build again --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 30 January 2023, 22:32:07 UTC
7cac539 [pre-commit.ci] pre-commit autoupdate (#454) * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v3.1.0 → v3.2.0](https://github.com/asottile/pyupgrade/compare/v3.1.0...v3.2.0) - https://gitlab.com/PyCQA/flake8 → https://github.com/PyCQA/flake8 - [github.com/PyCQA/flake8: 3.9.2 → 5.0.4](https://github.com/PyCQA/flake8/compare/3.9.2...5.0.4) * Update CHANGELOG Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 31 October 2022, 21:44:06 UTC
b2fff97 Fix formatting in CHANGELOG and cleanup CI builds workflows 30 October 2022, 22:56:26 UTC
ff757e7 Prepare the introduction of pre-commit CI + repository configuration updates (#453) * Remove pre-commit from GitHub workflows in favour of pre-commit CI * Remove manual tag for pre-commit hooks * Update CHANGELOG * Update pre-commit configuration file + add .yamllint - Added new pre-commit hooks + codespell + pydocstyle + doc8 + yamllint - Update pre-commit hook versions - Add .yamllint configuration file - Add .codespell.allow file for codespell * Delete .travis.yml file since not used anymore * Update YAML files to satisfy yamllint * Update Markdown files to fix linter/formatter warnings * Update ReST files to fix linter/formatter warnings * Update Python files to fix linter/formatter warnings * Rename CI jobs * Install pybind11 earlier in CI build * Update CHANGELOG * Address pre-commit CI virtualenv size limitations 30 October 2022, 20:57:35 UTC
71a3af0 Feature/upgrade GitHub workflows (#452) * Update GitHub Action versions * Also update actions/checkout * Update CHANGELOG 30 October 2022, 19:13:11 UTC
e73d582 Upgrade GitHub Actions (#450) * Upgrade GitHub Actions https://github.com/actions/cache/releases https://github.com/actions/checkout/releases https://github.com/actions/setup-python/releases * Update CHANGELOG * Properly update CHANGELOG Co-authored-by: Damien Nguyen <ngn.damien@gmail.com> 27 October 2022, 08:33:01 UTC
b4b839e Context Manager: with flushing(MainEngine()) as eng: (#449) * Context Manager: with flushing(MainEngine()) as eng: Simplify the creation, use, and flushing of any Engine using a Python context manager. When exiting the `with` block, the engine is _automatically_ flushed. Modeled after https://docs.python.org/3/library/contextlib.html#contextlib.closing ```python from projectq import MainEngine, flushing # import the main compiler engine from projectq.ops import ( H, Measure, ) # import the operations we want to perform (Hadamard and measurement) with flushing(MainEngine()) as eng: # create a default compiler (the back-end is a simulator) qubit = eng.allocate_qubit() # allocate a quantum register with 1 qubit H | qubit # apply a Hadamard gate Measure | qubit # measure the qubit # This line is no longer required... eng.flush() print(f"Measured {int(qubit)}") # converting a qubit to int or bool gives access to the measurement result * Add tests * Run linters/formatters on code * Fix isort comment pragmas * Really fix isort issues in cengines/__init__.py Co-authored-by: Damien Nguyen <ngn.damien@gmail.com> 27 October 2022, 08:01:08 UTC
b768038 Merge branch 'master' into develop 19 October 2022, 07:40:37 UTC
009c880 Release version v0.8.0 (#446) * Merge master into develop branch (#436) * Preparing release vv0.7.2 * Fix missed bug in optimize.py * Fix typo in _optimize.py * Fix linters/formatters warnings * Update missed hooks * Hotfix: fix GitHub action workflows * Release version v0.7.3 (#435) * Merge master into develop branch (#431) * Preparing release vv0.7.2 * Fix missed bug in optimize.py * Fix typo in _optimize.py * Fix linters/formatters warnings * Update missed hooks * Hotfix: fix GitHub action workflows Co-authored-by: GitHub actions <noreply@github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> * IonQ API: Move to v0.2, and fixup backends path (#433) * Move to v0.2, and fixup backends path The previous path was mistakenly incorrect, could we release this as a patch release of project-Q? Happy to help how I can. * changelog * fix * One more fixup * remove urljoin * fmt * Preparing release v0.7.3 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: GitHub actions <noreply@github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> Co-authored-by: Jon Donovan <donovan@ionq.co> Co-authored-by: GitHub actions <noreply@github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jon Donovan <donovan@ionq.co> * Bump docker/setup-qemu-action from 1 to 2 (#437) * Bump docker/setup-qemu-action from 1 to 2 Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1 to 2. - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](https://github.com/docker/setup-qemu-action/compare/v1...v2) --- updated-dependencies: - dependency-name: docker/setup-qemu-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update CHANGELOG * Fix CentOS 7 build Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> * Fix setuptools-scm version for Python 3.6 (#440) * Add `blacken-docs` and `pyupgrade` to pre-commit configuration (#441) * Add `blacken-docs` and `pyupgrade` to pre-commit configuration * Apply new pre-commit hooks and fix related issues. * Update CHANGELOG * Fix unit tests failures * Fix pre-commit failure * Generalise the use of f-strings * Fix IonQ tests * Run `pyupgrade` before `isort` and `black` * Deprecate support for Python 3.6 (#442) * Azure Quantum backend (#439) * Add Azure Quantum backend template files * Add implementation of Azure Quantum * Add support for Honeywell and improve exception handling * Fixes and reformatting * Fixes and Improvements * Fixes and Improvements * Fixes and Improvements * Fixes and Improvements * Fix QASM transulation * Fixes and Improvements * Documentation related changes * Fix typos * Add docstrings to util methods * Fix typos * Add Unittests * Add Unittests * Add Unittests & rename honeywell to quantinuum * Fixes for QSAM convector * Add Unittests * Add Unittests * Add Unittests * Add Unittests * Fix Quantinuum Backend for Azure Quantum * Add Unittests * Add Unittests * Add Unittests * Add Unittests * Fix Vdag gate for IonQ backend * Minor updates * Update Docs * Add Azure Quantum example * Update README.rst * Update Docs * Update Docs * Update Unittests * Azure Quantum: CI Fixes (#4) * Azure Quantum: CI Fixes * Fix optional dependency problem * Update pre-commit reformatting * Fix pylint issues * Fix pylint issues * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Resolve comments (#5) * Resolve comments * Remove rearrange_result method from _utils.py * Update with pytest.approx for assert floating numbers * Pytest skipif testcases for Azure Quantum (#6) * Pytest skipif testcases for Azure Quantum * Fix projectq.backends._azure._exceptions import * Add common utils module (#7) * Create common utils module * Optimize _rearrange_result method * Make sure pip, setuptools and wheel packages are up to date on CI * Fix formatting issues from latest changes in develop branch * Improve coveralls (#8) * Improve coveralls * Improve coveralls * Rename util.py to utils.py * Minor fixes * Update testcases * Update testcases * Improve coveralls (#9) * Improve coveralls * Improve coveralls * Precommit reformatting * Improve coveralls (#10) * Improve coveralls * Precommit formatting * Fix CI failures * Avoid a few more #pragma: no cover * Fix flake8 warning * Remove one more # pragma: no cover * Reformat file Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> * Fix installation on Apple Silicon and older Python versions (#444) * Preparing release v0.8.0 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: GitHub actions <noreply@github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> Co-authored-by: Jon Donovan <donovan@ionq.co> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sai Seshu Chadaram <ssc1729@outlook.com> 18 October 2022, 15:43:53 UTC
e73397f Fix installation on Apple Silicon and older Python versions (#444) 14 October 2022, 05:55:18 UTC
739f782 Azure Quantum backend (#439) * Add Azure Quantum backend template files * Add implementation of Azure Quantum * Add support for Honeywell and improve exception handling * Fixes and reformatting * Fixes and Improvements * Fixes and Improvements * Fixes and Improvements * Fixes and Improvements * Fix QASM transulation * Fixes and Improvements * Documentation related changes * Fix typos * Add docstrings to util methods * Fix typos * Add Unittests * Add Unittests * Add Unittests & rename honeywell to quantinuum * Fixes for QSAM convector * Add Unittests * Add Unittests * Add Unittests * Add Unittests * Fix Quantinuum Backend for Azure Quantum * Add Unittests * Add Unittests * Add Unittests * Add Unittests * Fix Vdag gate for IonQ backend * Minor updates * Update Docs * Add Azure Quantum example * Update README.rst * Update Docs * Update Docs * Update Unittests * Azure Quantum: CI Fixes (#4) * Azure Quantum: CI Fixes * Fix optional dependency problem * Update pre-commit reformatting * Fix pylint issues * Fix pylint issues * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Resolve comments (#5) * Resolve comments * Remove rearrange_result method from _utils.py * Update with pytest.approx for assert floating numbers * Pytest skipif testcases for Azure Quantum (#6) * Pytest skipif testcases for Azure Quantum * Fix projectq.backends._azure._exceptions import * Add common utils module (#7) * Create common utils module * Optimize _rearrange_result method * Make sure pip, setuptools and wheel packages are up to date on CI * Fix formatting issues from latest changes in develop branch * Improve coveralls (#8) * Improve coveralls * Improve coveralls * Rename util.py to utils.py * Minor fixes * Update testcases * Update testcases * Improve coveralls (#9) * Improve coveralls * Improve coveralls * Precommit reformatting * Improve coveralls (#10) * Improve coveralls * Precommit formatting * Fix CI failures * Avoid a few more #pragma: no cover * Fix flake8 warning * Remove one more # pragma: no cover * Reformat file Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 08 August 2022, 07:24:42 UTC
7444213 Deprecate support for Python 3.6 (#442) 29 July 2022, 08:24:40 UTC
6bbda53 Add `blacken-docs` and `pyupgrade` to pre-commit configuration (#441) * Add `blacken-docs` and `pyupgrade` to pre-commit configuration * Apply new pre-commit hooks and fix related issues. * Update CHANGELOG * Fix unit tests failures * Fix pre-commit failure * Generalise the use of f-strings * Fix IonQ tests * Run `pyupgrade` before `isort` and `black` 19 July 2022, 08:47:25 UTC
8d9e465 Fix setuptools-scm version for Python 3.6 (#440) 10 July 2022, 20:37:53 UTC
78afc11 Bump docker/setup-qemu-action from 1 to 2 (#437) * Bump docker/setup-qemu-action from 1 to 2 Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1 to 2. - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](https://github.com/docker/setup-qemu-action/compare/v1...v2) --- updated-dependencies: - dependency-name: docker/setup-qemu-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update CHANGELOG * Fix CentOS 7 build Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 09 May 2022, 21:32:05 UTC
ab2211e Merge master into develop branch (#436) * Preparing release vv0.7.2 * Fix missed bug in optimize.py * Fix typo in _optimize.py * Fix linters/formatters warnings * Update missed hooks * Hotfix: fix GitHub action workflows * Release version v0.7.3 (#435) * Merge master into develop branch (#431) * Preparing release vv0.7.2 * Fix missed bug in optimize.py * Fix typo in _optimize.py * Fix linters/formatters warnings * Update missed hooks * Hotfix: fix GitHub action workflows Co-authored-by: GitHub actions <noreply@github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> * IonQ API: Move to v0.2, and fixup backends path (#433) * Move to v0.2, and fixup backends path The previous path was mistakenly incorrect, could we release this as a patch release of project-Q? Happy to help how I can. * changelog * fix * One more fixup * remove urljoin * fmt * Preparing release v0.7.3 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: GitHub actions <noreply@github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> Co-authored-by: Jon Donovan <donovan@ionq.co> Co-authored-by: GitHub actions <noreply@github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jon Donovan <donovan@ionq.co> 27 April 2022, 10:35:17 UTC
0a4e247 Merge branch 'develop' into master 27 April 2022, 10:16:54 UTC
7145676 Release version v0.7.3 (#435) * Merge master into develop branch (#431) * Preparing release vv0.7.2 * Fix missed bug in optimize.py * Fix typo in _optimize.py * Fix linters/formatters warnings * Update missed hooks * Hotfix: fix GitHub action workflows Co-authored-by: GitHub actions <noreply@github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> * IonQ API: Move to v0.2, and fixup backends path (#433) * Move to v0.2, and fixup backends path The previous path was mistakenly incorrect, could we release this as a patch release of project-Q? Happy to help how I can. * changelog * fix * One more fixup * remove urljoin * fmt * Preparing release v0.7.3 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: GitHub actions <noreply@github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> Co-authored-by: Jon Donovan <donovan@ionq.co> 27 April 2022, 09:49:17 UTC
41e608d IonQ API: Move to v0.2, and fixup backends path (#433) * Move to v0.2, and fixup backends path The previous path was mistakenly incorrect, could we release this as a patch release of project-Q? Happy to help how I can. * changelog * fix * One more fixup * remove urljoin * fmt 27 April 2022, 09:04:20 UTC
cef343d Merge master into develop branch (#431) * Preparing release vv0.7.2 * Fix missed bug in optimize.py * Fix typo in _optimize.py * Fix linters/formatters warnings * Update missed hooks * Hotfix: fix GitHub action workflows Co-authored-by: GitHub actions <noreply@github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 11 April 2022, 12:38:15 UTC
2b48dd4 Hotfix: fix GitHub action workflows 11 April 2022, 10:49:27 UTC
7a3b95b Merge pull request #430 from ProjectQ-Framework/release/v0.7.2 Release version v0.7.2 11 April 2022, 10:39:09 UTC
4d01582 Update missed hooks 11 April 2022, 10:30:24 UTC
bd3433c Fix linters/formatters warnings 11 April 2022, 10:29:46 UTC
7189295 Fix typo in _optimize.py 11 April 2022, 09:56:39 UTC
b459f90 Fix missed bug in optimize.py 11 April 2022, 09:49:12 UTC
4bee4d0 Preparing release vv0.7.2 11 April 2022, 09:22:50 UTC
b22a278 Add support for dynamic backends for IonQ (#428) * Add support for dynamic backends for IonQ Using the backends endpoint, add available backends to the list. * Review comments * Formatting fixes * changelog * Remove unnecessary element in docstring Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 11 April 2022, 08:48:33 UTC
6f2c2be Update pre commit hooks and fix failing CentOS CI builds (#429) * Update pre-commit hook versions * Fix linter/formatter warnings * Fix issues with CentOS build on the CI 11 April 2022, 08:23:57 UTC
0d32c16 Merge pull request #427 from ProjectQ-Framework/master Merge master into develop branch 10 January 2022, 13:38:56 UTC
af04313 Release version 0.7.1 (#426) * Bump thomaseizinger/create-pull-request from 1.1.0 to 1.2.1 (#414) * Bump thomaseizinger/create-pull-request from 1.1.0 to 1.2.1 Bumps [thomaseizinger/create-pull-request](https://github.com/thomaseizinger/create-pull-request) from 1.1.0 to 1.2.1. - [Release notes](https://github.com/thomaseizinger/create-pull-request/releases) - [Changelog](https://github.com/thomaseizinger/create-pull-request/blob/master/CHANGELOG.md) - [Commits](https://github.com/thomaseizinger/create-pull-request/compare/1.1.0...1.2.1) --- updated-dependencies: - dependency-name: thomaseizinger/create-pull-request dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update CHANGELOG Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> * Bump thomaseizinger/keep-a-changelog-new-release from 1.2.1 to 1.3.0 (#416) * Bump thomaseizinger/keep-a-changelog-new-release from 1.2.1 to 1.3.0 Bumps [thomaseizinger/keep-a-changelog-new-release](https://github.com/thomaseizinger/keep-a-changelog-new-release) from 1.2.1 to 1.3.0. - [Release notes](https://github.com/thomaseizinger/keep-a-changelog-new-release/releases) - [Changelog](https://github.com/thomaseizinger/keep-a-changelog-new-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/thomaseizinger/keep-a-changelog-new-release/compare/1.2.1...1.3.0) --- updated-dependencies: - dependency-name: thomaseizinger/keep-a-changelog-new-release dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update CHANGELOG Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Damien Nguyen <ngn.damien@gmail.com> * Bump thomaseizinger/create-pull-request from 1.2.1 to 1.2.2 (#419) * Bump thomaseizinger/create-pull-request from 1.2.1 to 1.2.2 Bumps [thomaseizinger/create-pull-request](https://github.com/thomaseizinger/create-pull-request) from 1.2.1 to 1.2.2. - [Release notes](https://github.com/thomaseizinger/create-pull-request/releases) - [Changelog](https://github.com/thomaseizinger/create-pull-request/blob/master/CHANGELOG.md) - [Commits](https://github.com/thomaseizinger/create-pull-request/compare/1.2.1...1.2.2) --- updated-dependencies: - dependency-name: thomaseizinger/create-pull-request dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Update CHANGELOG Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> * Update CI setup (#422) * Fix compiler flags cleanup routine * Update CHANGELOG * Use clang for linking on Clang CI workflows * Fix compiler_test(...) function in setup.py * Fix CI failure when testing locally * Remove LDSHARED for Clang build * Fix linter warnings in setup.py * Update CHANGELOG * Update more workflow files for local actions * Remove deprecated GitHub action for pre-commit * Update CHANGELOG * Update pre-commit hooks versions * Refrain from updating pylint pre-commit hook for now * Fix issue with running pre-commit on CI * Add cache support for pre-commit on CI * Fix name of caching step for pre-commit on CI * Add Python 3.10 for testing on CI * Add Python 3.10 in package metadata * Fix gen_reqfile command if --include-extras is not provided * Add setup option to avoid -march=native when building ProjectQ * Add support for CIBuildWheel in pyproject.toml * Tweak environment variables used during setup * Avoid Linux Musl in CIBuildWheel config * Update GitHub Workflow for publishing a release * Bump dangoslen/changelog-enforcer from 2 to 3 (#423) * Bump dangoslen/changelog-enforcer from 2 to 3 Bumps [dangoslen/changelog-enforcer](https://github.com/dangoslen/changelog-enforcer) from 2 to 3. - [Release notes](https://github.com/dangoslen/changelog-enforcer/releases) - [Changelog](https://github.com/dangoslen/changelog-enforcer/blob/master/CHANGELOG.md) - [Commits](https://github.com/dangoslen/changelog-enforcer/compare/v2...v3) --- updated-dependencies: - dependency-name: dangoslen/changelog-enforcer dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update CHANGELOG Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> * Remove windows-2016 from GitHub workflows (#424) * Re-add build of binary wheels (#425) - For now without automatic upload of binaries to PyPi * Preparing release v0.7.1 * Update CHANGELOG.md * Last minute fix for release drafting workflow Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub actions <noreply@github.com> 10 January 2022, 13:08:51 UTC
9222a52 Re-add build of binary wheels (#425) - For now without automatic upload of binaries to PyPi 10 January 2022, 09:32:56 UTC
b0c2607 Remove windows-2016 from GitHub workflows (#424) 10 January 2022, 08:56:55 UTC
b1c7e2d Bump dangoslen/changelog-enforcer from 2 to 3 (#423) * Bump dangoslen/changelog-enforcer from 2 to 3 Bumps [dangoslen/changelog-enforcer](https://github.com/dangoslen/changelog-enforcer) from 2 to 3. - [Release notes](https://github.com/dangoslen/changelog-enforcer/releases) - [Changelog](https://github.com/dangoslen/changelog-enforcer/blob/master/CHANGELOG.md) - [Commits](https://github.com/dangoslen/changelog-enforcer/compare/v2...v3) --- updated-dependencies: - dependency-name: dangoslen/changelog-enforcer dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update CHANGELOG Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 05 January 2022, 20:05:24 UTC
a223425 Update CI setup (#422) * Fix compiler flags cleanup routine * Update CHANGELOG * Use clang for linking on Clang CI workflows * Fix compiler_test(...) function in setup.py * Fix CI failure when testing locally * Remove LDSHARED for Clang build * Fix linter warnings in setup.py * Update CHANGELOG * Update more workflow files for local actions * Remove deprecated GitHub action for pre-commit * Update CHANGELOG * Update pre-commit hooks versions * Refrain from updating pylint pre-commit hook for now * Fix issue with running pre-commit on CI * Add cache support for pre-commit on CI * Fix name of caching step for pre-commit on CI * Add Python 3.10 for testing on CI * Add Python 3.10 in package metadata * Fix gen_reqfile command if --include-extras is not provided * Add setup option to avoid -march=native when building ProjectQ * Add support for CIBuildWheel in pyproject.toml * Tweak environment variables used during setup * Avoid Linux Musl in CIBuildWheel config * Update GitHub Workflow for publishing a release 05 January 2022, 19:48:12 UTC
c26f70a Bump thomaseizinger/create-pull-request from 1.2.1 to 1.2.2 (#419) * Bump thomaseizinger/create-pull-request from 1.2.1 to 1.2.2 Bumps [thomaseizinger/create-pull-request](https://github.com/thomaseizinger/create-pull-request) from 1.2.1 to 1.2.2. - [Release notes](https://github.com/thomaseizinger/create-pull-request/releases) - [Changelog](https://github.com/thomaseizinger/create-pull-request/blob/master/CHANGELOG.md) - [Commits](https://github.com/thomaseizinger/create-pull-request/compare/1.2.1...1.2.2) --- updated-dependencies: - dependency-name: thomaseizinger/create-pull-request dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Update CHANGELOG Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 16 December 2021, 14:31:21 UTC
c4bed0e Bump thomaseizinger/keep-a-changelog-new-release from 1.2.1 to 1.3.0 (#416) * Bump thomaseizinger/keep-a-changelog-new-release from 1.2.1 to 1.3.0 Bumps [thomaseizinger/keep-a-changelog-new-release](https://github.com/thomaseizinger/keep-a-changelog-new-release) from 1.2.1 to 1.3.0. - [Release notes](https://github.com/thomaseizinger/keep-a-changelog-new-release/releases) - [Changelog](https://github.com/thomaseizinger/keep-a-changelog-new-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/thomaseizinger/keep-a-changelog-new-release/compare/1.2.1...1.3.0) --- updated-dependencies: - dependency-name: thomaseizinger/keep-a-changelog-new-release dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update CHANGELOG Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Damien Nguyen <ngn.damien@gmail.com> 19 October 2021, 13:41:08 UTC
379d0f9 Bump thomaseizinger/create-pull-request from 1.1.0 to 1.2.1 (#414) * Bump thomaseizinger/create-pull-request from 1.1.0 to 1.2.1 Bumps [thomaseizinger/create-pull-request](https://github.com/thomaseizinger/create-pull-request) from 1.1.0 to 1.2.1. - [Release notes](https://github.com/thomaseizinger/create-pull-request/releases) - [Changelog](https://github.com/thomaseizinger/create-pull-request/blob/master/CHANGELOG.md) - [Commits](https://github.com/thomaseizinger/create-pull-request/compare/1.1.0...1.2.1) --- updated-dependencies: - dependency-name: thomaseizinger/create-pull-request dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update CHANGELOG Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 03 August 2021, 10:31:09 UTC
97510a1 Merge pull request #411 from ProjectQ-Framework/master Merge master into develop branch 15 July 2021, 15:29:01 UTC
db4a088 Merge pull request #410 from ProjectQ-Framework/release/0.7.0 Release version 0.7.0 15 July 2021, 15:15:31 UTC
8ef487d Update CHANGELOG 15 July 2021, 15:05:23 UTC
a1c8d52 Preparing release v0.7.0 14 July 2021, 17:24:44 UTC
1c07475 Modernize ProjectQ (isort, PEP 257 docstrings, drop Python 2 code, more flake8 plugins) and fix phase estimation unit tests (#408) * Fix tests for the phase estimation decomposition * Fix docstrings according to PEP257 * Modernize code by removing some Python 2 compatibility code * Update CHANGELOG * Add isort to pre-commit-config.yaml and run it on the project * Move common exception classes to their own files * Fix changes from the latest on develop * Update CHANGELOG * Update Python code in documentation folder * Add `meta` repository to pre-commit configuration * Re-indent and cleanup .pre-commit-config.yaml * Add some more flake8 plugins to pre-commit config file - flake8-breakpoint - flake8-comprehensions - flake8-eradicate - flake8-mutable * Fix small bug with drawing using matplotlib * Address review comments * Better comment in docs/conf.py 14 July 2021, 17:12:09 UTC
0c44fba Implement a UnitarySimulator to save the unitary of a quantum circuit (#409) * Add matout() to check for matrices applied. Add check for self-control. * Move unitary logic to its own compiler engine class * Improve unitary simulator example * Added support for measurement. Added history for unitaries. Added tests * Clean up directory * Fix simulator error, add changelog * Undo unneeded space changes * Refactor example a little * Reformat some of the docstrings * Update CHANGELOG * Improve code to enable all pylint checks for the UnitarySimulator * Improve test coverage and simply parts of the code * Tweak UnitarySimulator some more - Make it so that multiple calls to flush() do not unnecessarily increase the history list of unitary matrices Co-authored-by: Damien Nguyen <ngn.damien@gmail.com> 01 July 2021, 14:09:14 UTC
10b4077 Fix some issues with automatic release publication (#407) * Only release source package... ... and leave commented out some code that would implement better testing before uploading to Pypi. * Remove unneeded comments * Update publish_release.yml * Update publish_release.yml * Update publish_release.yml 25 June 2021, 09:07:33 UTC
f0a0c1e Add checks to avoid too many compiler engines in the engine list (#405) * Add checks to avoid too many compiler engines in the engine list * Update CHANGELOG * Apply suggestions from Andreas 25 June 2021, 08:33:09 UTC
a0a41fe Merge pull request #404 from ProjectQ-Framework/master Merge master into develop branch 23 June 2021, 16:09:33 UTC
1ff10be Merge pull request #403 from ProjectQ-Framework/hotfix/0.6.1 Fix publishing GitHub workflow 23 June 2021, 15:35:10 UTC
62fd632 Fix publishing GitHub workflow 23 June 2021, 15:21:02 UTC
76f4809 Merge pull request #402 from ProjectQ-Framework/release/0.6.0 Release version 0.6.0 23 June 2021, 14:43:15 UTC
e0ff304 Preparing release v0.6.0 - Fix some minor issues prior to releasing + Fixed pyproject.toml sections for pylint + Fixed constant warning messages if braket extra is not installed + Fixed file ignore list for check-manifest + Fixed issue with version in GitHub Actions + Added `setup_require` section to setup.cfg + Added new extra for testing (will eventually replace requirements_tests.txt) + Update pre-commit config to run black before linters + Update badges in README + Update configuration for pylint and pytest in pyproject.toml + Restructure and update CHANGELOG - Enable pylint in pre-commit hooks - Apply changes based on running pylint - Rename `m` parameter of the LocalOptimizer to `cache_size` - Gracious exit in case of failure in the MainEngine constructor - Remove requirements_tests.txt and improve gen_reqfile setup command - Remove docs/requirements.txt and add .readthedocs.yaml - Remove all assert statements in non-test code - Reinstate flaky test for phase estimation decomposition 23 June 2021, 14:35:58 UTC
f93cca3 Bump thomaseizinger/create-pull-request from 1.0.0 to 1.1.0 (#401) * Bump thomaseizinger/create-pull-request from 1.0.0 to 1.1.0 Bumps [thomaseizinger/create-pull-request](https://github.com/thomaseizinger/create-pull-request) from 1.0.0 to 1.1.0. - [Release notes](https://github.com/thomaseizinger/create-pull-request/releases) - [Changelog](https://github.com/thomaseizinger/create-pull-request/blob/master/CHANGELOG.md) - [Commits](https://github.com/thomaseizinger/create-pull-request/compare/1.0.0...1.1.0) --- updated-dependencies: - dependency-name: thomaseizinger/create-pull-request dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update CHANGELOG Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Damien Nguyen <ngn.damien@gmail.com> 21 June 2021, 08:05:56 UTC
aa3afaf Ctrl generalize (#400) * Init * Apply control through compute engine. Added Enum class * Apply control through compute engine. Added Enum class * Apply control through compute engine, added enum class * Fix small bug due to wrong default value, clean up output * abolished decomp * Revert "abolished decomp" This reverts commit 36743a15b7e3c66a9f648735de91f690eea51121. * Apply Control through decomposition. Added Test Files * Fix a few issues with new control state - Address inconsistency with qubit state ordering when using integers as input control state - Add canonical_ctrl_state function to centralise functionality - Fix some file encoding - Fix tests * Update examples/control_tester.py * Add some missing license headers and fix some tests * Add missing docstring * Cleanup some code in AQT and IBM backends * Some code cleanup in _simulator.py * Change autoreplacer priority for control. Added Additional test for autoreplacer. Added check for canonical ctrl state func. * Update projectq/setups/default.py * Update projectq/setups/decompositions/cnu2toffoliandcu.py * Update projectq/setups/decompositions/cnu2toffoliandcu.py * Cleanup code in _replacer.py * Tweak some of the unit tests + add comments * Add more tests for canonical_ctrl_state and has_negative_control * Short pass of reformatting using black * Bug fixing for rebasing * Reformat files. Improve control_tester examples. Update change log * Dummy change to trigger CI with new state * Use pytest-mock for awsbraket client testing * Fix Linter warnings * Use pytest-mock also for awsbraket backend tests * Fix missing tests in backends and added support for IonQ * Fix linter warning * Add support for AWSBraketBackend * Fix small typo * Use backported mock instead of unittest.mock * Sort requirements_tests.txt * Fix a bunch of errors that happens at program exit Monkeypatching or patching of external may unload the patch before the MainEngine calls the last flush operations which would then call the original API although unwanted. Co-authored-by: Damien Nguyen <ngn.damien@gmail.com> 16 June 2021, 12:28:55 UTC
b078f67 Add a backend for IonQ. (#391) * Add a backend for IonQ. * Update projectq/setups/ionq.py Thanks for the correction! Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> * Update docstring to match return type. * Fix copyright header years, imports, docstring. * Fix comment * Fix measurement mappings and result parsing. * Fix some bad logic with result probability mappings. * Fix some erroneous test cases. * Fix example code. * Ensure qubits are "deallocated" and reset after job submit. * Drop dependency on mappers in favor of API response mappings. * Add better error handling for API/http errors. * Fix tests. * Update example notebook. * Fix qubit mapping. * Use a dedicated qubit mapper instead of bashing self.main_engine. * Update backend, add tests, to reflect new mapper. * Use response.registers instead of echoing metadata. * Fix get_probability after register updates * Fixes after rebase, use metadata to remamp qubit IDs on response * Lint/CI/Format/Changelog fixes * Always make sure to give a result, even if it's not likely * Missed formatter issues Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 14 June 2021, 15:32:42 UTC
0cf7322 Bump joerick/cibuildwheel from 1.11.0 to 1.11.1 (#397) * Bump joerick/cibuildwheel from 1.11.0 to 1.11.1 Bumps [joerick/cibuildwheel](https://github.com/joerick/cibuildwheel) from 1.11.0 to 1.11.1. - [Release notes](https://github.com/joerick/cibuildwheel/releases) - [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md) - [Commits](https://github.com/joerick/cibuildwheel/compare/v1.11.0...v1.11.1) --- updated-dependencies: - dependency-name: joerick/cibuildwheel dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Update CHANGELOG Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Damien Nguyen <ngn.damien@gmail.com> 14 June 2021, 09:34:49 UTC
23dac9e GitHub actions, pre-commit hooks, pyproject.toml and more (#395) * Adding support for GitHub actions * Add workflow to upload to PyPi on GitHub releases submission * Add dependabot configuration file * Clang-Tidy and generation of requirement file for setup.py * Add support for pre-commit hooks and formatting workflow * Remove .pylintrc, .coveragerc and pytest.ini in favour of setup.cfg * Fix Clang-Tidy warnings * Fix flake8 warnings * Modify MANIFEST.in * Fix some issues with the documentation generation * Fix awsbraket tests to avoid running if boto3 is not installed * Remove Python2 compatibility code * Apply changes from pre-commit-hooks * Run Black on whole project * Run remove-tabs on whole project * Fix flake8 issues * Fix some warnings occurring while running the test suite * Add pyproject.toml * Adapt GitHub Action to use pyproject.toml * Add .editorconfig * Use setuptools-scm * Add GitHub Actions for creating new releases * Add CHANGELOG.md * Update pre-commit hooks * Update license headers of files with non-trivial changes * Add setup.cfg and pyproject.toml to MANIFEST.in * Change output name of version file * Move parameters for check-manifest into pyproject.toml * Address most comments (mostly merging strings) * Effects of running black and flake8 with new settings * Remove __div__ and __idiv__ usage in tests for QubitOperator * Fix typo * Fix build issues on Clang docker images * Make installation verbose on CI * Fix bug with classical simulator and negative bit shifts * Update flaky for GCC CI builds * Remove unneeded qubit allocation in meta.Loop tests 14 June 2021, 09:23:19 UTC
fb548ef AWS Braket service backend (#388) * Add AWS Braket service devices as backends * Add AWS Braket service devices as backends. Correct a braket in README * Add AWS Braket service devices as backends. Pass pycodestyle * AWS Braket service backend. Corrections as per the review * AWS Braket service backend. Correct test to use approx instead of == * AWS Braket service backend. Add tests to raise the coverage * AWS Braket service backend. Second review adjustments * Fix import errors when boto3 is not installed + use warnings.warn() * Fix condition when setting the number of controls * Minor adjustments in _awsbraket.py - Better handling of daggered gates - Some minor code cleanup * Make sure that unit tests are skipped if boto3 is not installed * Rapid fix to make sure that tests can be repeated without errors * Fixes for _awsbraket.py and its associated tests - Minor code cleanup - Modify functional tests to work with and without mapper - Fix issue when repeating some tests more than once - Add missing test for case where AWS Braket backend is used as a compiler engine * Minor adjustments to _awsbraket_boto3_client.py and related tests - Tweak user messages slightly - Add test to cover missing execution paths * Remove mapper in Jupyter notebook * Cleanup tests for _awsbraket.py + remove unneeded catch of TypeError * Adjust .coveragerc * Cleanup tests for _awsbraket_boto3_client.py * Fix erroneous license header * Mention installing ProjectQ with the 'braket' extra in README * Remove unneeded call to is_available in AWSBraketBackend + ... ... improve basic functional test. * Re-indent _awsbraket_boto3_client.py * Some more cleanup for _awsbraket.py * Some more cleanup for _awsbraket_boto3_client.py * Remove trivial mapper in default setup for AWS Braket backend * Fix test failure Co-authored-by: Damien Nguyen <ngn.damien@gmail.com> 19 April 2021, 14:23:26 UTC
cee4688 Update .travis.yml configuration & add .coveragerc (#389) * Update .travis.yml configuration * Only do coveralls for one job * Fix failing tests * Tweak Mac OS build * More tweaks to Mac OS builds * Fix error with submitting to coveralls.io * Add .coveragerc * Add missing revkit dependency to .travis.yml * Temporarily disable Mac OS and Windows builds - Disable the builds until the project will be migrated to travis-ci.com due to the new credits plans on Travis-CI. 01 March 2021, 09:17:47 UTC
dff6adc Mathgates (#270) * added QuantumAdd __init__ * added test for superposition * quantum addition decomposition added * quantum addition decomposition added * quantum adder working * wrote test for quantum adder * fixed decomposition rule for quantumaddition * added subtract quantum * added comparator * added conditional add * fixed conditional add * added quantum division * fixed division * added comments * additional comments * fixed multiplication algorithm * added hash function testing * pep8 * added complexity information * adding test * add comments in python example code * Update shor.py * Update shor.py * Update _factoring_test.py * Update _constantmath.py * Update _constantmath.py * Update _constantmath.py * Update _constantmath_test.py * Update _constantmath_test.py * Update _constantmath_test.py * Update _constantmath_test.py * Update _constantmath_test.py * Update _quantummath.py * fixed quantum division mathfunction * add test for math functions in _gates.py * file _gates_mathtest.py complete * added tests * control add quantum * quantum_division same as QuantumDivision * added inverse quantum gate * added get_inverse() to subtract quantum * fixed error in inversequantum division * added inverse multiplication * added gate test * Cleanup some tests * Some more rewriting - Renamed all new gate classes to XXXQuantumGate - Create gate instances corresponding to each XXXQuantumGate class - Fixed addition function name in _replace_subtractquantum - Fixed missing get_inverse() method in MultiplyQuantumGate - Updated documentation - Expanded test cases to test both emulation and decomposition of XXXQuantum gates * Fix failing tests for addition and division emulation * Some more cleanup + update year in license headers * Some more cleanup * Remove unneeded function * Some more code cleanup * Revert change by commit a3f572b7ddb23a40d480e54ad36131c9db843e2a - Revert changes made to AddQuantum.get_math_function and _InverseAddQuantum.get_math_function * Minor adjustments to math gate tests * Fix pytest.ini * Adding missing __str__ methods Co-authored-by: Peter-Jan <peter-jan.derks@student.auc.nl> Co-authored-by: Damien Nguyen <ngn.damien@gmail.com> 17 February 2021, 09:46:46 UTC
44342ad Merge pull request #387 from ProjectQ-Framework/master ProjectQ v0.5.2 16 February 2021, 13:26:53 UTC
2354150 ProjectQ v0.5.2 (#385) * Update on the ibmq client (#379) * Fix install on macOS Big Sur (#383) * Bump version number * Fix tests * Patch travs.yml Co-authored-by: David Bretaud <40793394+dbretaud@users.noreply.github.com> Co-authored-by: Bartley Gillan <bartley.gillan@gmail.com> 12 February 2021, 10:42:38 UTC
c15f3b2 Fix install on macOS Big Sur (#383) 14 December 2020, 16:26:22 UTC
ae376fd Update on the ibmq client (#379) 23 September 2020, 16:01:00 UTC
659304d Merge pull request #369 from Takishima/release/0.5.1 ProjectQ v0.5.1 05 June 2020, 13:07:57 UTC
1920531 Merge branch 'master' into release/0.5.1 05 June 2020, 12:18:31 UTC
ea99d74 Merge pull request #370 from Takishima/release/0.5.1 ProjectQ v0.5.1 05 June 2020, 12:14:51 UTC
dd8199f Bumped version to v0.5.1 07 May 2020, 09:27:37 UTC
6ef8a0e bug fix on ibm example; new aqt example; updated the main README file (#368) Co-authored-by: dbretaud <logiciqt@gmail.com> 30 April 2020, 14:06:32 UTC
f88a0f6 Add histogram plotting feature for simulator (#362) * Add histogram plotting function for Simulator * Apply suggestion to projectq/libs/__init__.py * Apply suggestion to projectq/libs/hist/__init__.py * Update _histogram.py * Apply suggestion to projectq/libs/hist/_histogram.py * Apply suggestion to projectq/libs/hist/_histogram.py * Add docstrings * All suggestions applied. * Minor fixes for _histogram.py * Minor modifications to _histogram_test.py * Check that some message was printed in case of too many qubits * Update __init__.py Trigger Travis-CI * Add print_function for Python 2.7 * Remove unsupported 'flush' keyword for Python 2.7 * Update bellpair example with histogram plot of probabilities * Add support for other backends * Update IBM examples with histogram plots * Fix error in conf.py * Increase test coverage Co-authored-by: Ari Jordan 80055203 <ari.jordan@huawei.com> Co-authored-by: Damien Nguyen <damien1@huawei.com> 20 April 2020, 12:06:22 UTC
dfaf725 IBM backend update (#366) * update ibm backend protocol and cleanup ibm files * update README regarding ibmq * Reindent _ibm_http_client.py * Some code cleanup * Ignore signal handler for test coverage Co-authored-by: dbretaud <logiciqt@gmail.com> Co-authored-by: Damien Nguyen <damien1@huawei.com> 20 April 2020, 07:39:53 UTC
86cd1d2 Aqt Backend (#353) * Backend implementation for aqt trapped ion quantum computer. * testing files for aqt backend * major fixes on testing files * minor fixes * remove requierement for external mapper; bug fixes * syntax cleaning * name fix * Added setup for AQT backend * Reindent files * Fix typo * Add setup for AQT backend * Increase test coverage for _aqt.py * Increase test coverage * Code cleanup and increase test coverage * More code cleanup and adjust license year * Final test coverage increase * fix comments * fixes on aqt setup test * revert bug Co-authored-by: dbretaud <logiciqt@gmail.com> Co-authored-by: Damien Nguyen <damien1@huawei.com> 20 April 2020, 07:39:42 UTC
67ce24b Fix bugs with matplotlib drawer (#361) * Accept keywords arguments for Matplotlib drawing * fix circ drawer when depth == 1 Co-authored-by: Damien Nguyen <damien1@huawei.com> 25 March 2020, 15:21:31 UTC
dfff0f3 Fix generated documentation (#360) * Fix some issues with builtin modules and fix some warnings * Move generated documentation files into dedicated folder Co-authored-by: Damien Nguyen <damien1@huawei.com> 25 March 2020, 15:19:49 UTC
f4a82f2 Merge pull request #359 from ProjectQ-Framework/release/0.5.0 ProjectQ v0.5.0 23 March 2020, 07:58:32 UTC
89cb7fd ProjectQ v0.5.0 (#356) * Bumped version number to 0.5.0 * Remove unneeded test * Fix error in examples/ibm.py * Add documentation for **kwargs for CircuitDrawerMatplotlib * Update setup.py license header Co-authored-by: Damian Steiger <damiansteiger@users.noreply.github.com> 19 March 2020, 10:35:41 UTC
32513f1 Update setup.py license header 19 March 2020, 08:12:35 UTC
f5d43e9 Add documentation for **kwargs for CircuitDrawerMatplotlib 28 February 2020, 17:40:19 UTC
f7f57a1 Fix error in examples/ibm.py 28 February 2020, 17:39:10 UTC
cec7452 Remove unneeded test 28 February 2020, 17:38:35 UTC
6860e6d Merge branch 'release/0.5.0' 19 February 2020, 10:25:55 UTC
fce5921 Bumped version number to 0.5.0 19 February 2020, 10:25:48 UTC
63af3bf Update setup.py (#337) * Rewrite setup.py to fix some issues on Mac OSX and some code cleanup - On Mac OSX with Homebrew, properly find the path to the OpenMP library if compiling with clang from Homebrew - Code cleanup and some reformating * Remove use of deprecated setuptools.Feature Now try to compile the C++ simulator and if it fails, simply install a pure Python package with some warning messages for the user. * Update documentation to reflect the latest change to setup.py * Fix error with deleted method of BuildExt * Remove global COPYING file and move text to setup.py file itself * Fix compilation issues on MacOS X * Update .gitignore * Fix setup.py for Python2 and MacPorts (Mac OS) * Fix setup.py on Windows * Some more fixes * Attempt to fix failing installation on Travis CI * Fix installation under Linux * Undo changes in .travis.yml * Update setup related tutorials * Fix a few remaining typos. 19 February 2020, 09:19:57 UTC
d5bf14e Automatically generate documentation ReST files (#339) * Automate generation of documentation ReST files * Fix error in conf.py * Adjust .gitignore 05 February 2020, 10:24:33 UTC
7da50cf Ibm backend v2 (solves #318 and #347) (#349) * reduced Ry decomposition : modification of restrictedgateset setup to include compiler chooser, extension of available decompositions, new setup based on restrictedgateset but adapted for trapped ion configurations * Addition of test file for the rz2rx decomposition Addition of test file for the rz2rx decomposition and edit to comments in the rz2rx file * Revert "Addition of test file for the rz2rx decomposition" This reverts commit 5aab56b7384d60d5ac09e5b08bebf14135b5a006. * Create rz2rx_test file Addition of test file for the rz2rx decomposition * Update rz2rx.py Update to comments * Update rz2rx_test.py Update to comments * Minor update: remove accidental file * Minor update rz2rx.py Corrected an angle. * Minor update rz2rx_test.py Edited comments. * Create h2rx_test.py Updated method for test_decomposition which tests that decomposition produces identical wave-state up to a global phase. * Improvement of the decomposition chooser; Note that basic restricted gate set will fail decomposing into Rxx because of the default chooser * Updates to h2rx and cnot2rxx * Create cnot2rxx_test.py Testing file for cnot2rxx decomposition. Includes updated method for test_decomposition which tests that decomposition produces identical wave-state up to a global phase. * basic rotation gates at an angle of 0 or 2pi are removed by the optimizer. basic rotation gates ignore now the global phase and are defined over 0:2pi * Update and create trapped_ion_decomposer_test.py * Minor update Documentation and comments. * Update on comments regarding Identity gates * Changes 1/2 : command can be printed with unicode symbols only via new to_String method; syntax correction; * Work in progress, is commutable * Update to decomposition test files rz2rx_test now tests each decomposition defined in rz2rx.all_defined_decomposition_rules Similar for cnot2rxx_test and h2rx_test * Revert "Work in progress, is commutable" This reverts commit 27f820cac337c81dbc037b5e3e0381b7e31db5b3. * ibmq fix: projectq uses new ibmq API (no doc available, just look at qiskit). Connection fixed for 5qb devices, the 15qb melbourne device and the online simulator coupling map obtained from ibm server instead of being manually written one setup can be used for the 3 different backend * minor fixes * update on the ibm example * minor fixes; revert rotation gates to [0;4pi) * fix comments * fix mapper choice for simulator. added comments * minor fixes with results, mapper and testing files. Improvement of get_probabilities * Revert "Merge branch 'develop' into ibm_V2" This reverts commit cd0452a5f56d8d7fc95dc17f6dc5d4970f3ad130, reversing changes made to 03daf7915ce663f8dc79975ba87dabb4534272e6. * minor fixes * bug fix in client test file * fixing bug and python2.7 compatibility for testing files * fix errors * major fix on testing files * minor fix on comments and python 2.7 compatibility * fix 'super()' call for python 2.7 * additional tests * python2.7 fix * increase coverage, fix a print statement * Some minor stylistic adjustments * Reindent files and fix some linting warnings/errors * Improve test coverage * Improve code readability Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 04 February 2020, 13:16:02 UTC
a80fa84 Matplotlib drawer backend (#352) * Adding tutorials directory * test * BV Algorithm * add Matplotlib circuit drawer backend, this version works for H, CNOT, and Multi-CNOT. * Delete the added unnecessary attributes in Command object * Create the CircuitDrawerMatplotlib Class to handles drawing with matplotlib * Deleted tutorials/.gitkeep * update * fix measurement gate * Delete unrelated files. * fix Toffoli gate position issue and change the qubit position from 'str' to 'int' * Pytest for drawer_mpl * Tests for _plot function * Fix the R(angle) gate drawing * added test for is_available and QFT gate * fix drawing distance between gates when gate_length >2 * new test png for pytest mpl * added Swap gates and CSwap gate with multi-control and multi-target. * update test and comments * Address comments in _drawer.py * Reindent and reformat parts of _drawer.py * Address comments in _plot.py - Minor tweaks, code cleanup, rewrites, etc. * Reindent and reformat _plot.py * update tests * Move matplotlib drawer into its own file + add test coverage * Use regular expressions to rewrite and shorten gate names * Change internal storage format for CircuitDrawerMatplotlib * Better graphics and adapt plot functions to new internal format - Support for new internal format - Resulting quantum circuit figure whould work better with scaling - Large quantum circuits will now result in wider figure instead of squeezing everything into the default matplotlib size - Some support for multi-target qubit gates - General code cleanup - Dropped support for double lines when qubit is in classical state * Complete test coverage + add some checks for to_draw() inputs * Compatibility with matplotlib 2.2.3 * Remove compatibility code for MacOSX. Use local matplotlibrc if necessary instead. * Add matplotlib dependency to requirements.txt * Fix non-UTF8 character in file * Fix .travis.yml * Remove unnecessary PNG files * Add CircuitDrawerMatplotlib to documentation and minor code fix * Fix docstring for CircuitDrawerMatplotlib Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 04 February 2020, 12:23:43 UTC
93f2d79 Trapped ion decomposer setup and rotation gates improvement (#346) * reduced Ry decomposition : modification of restrictedgateset setup to include compiler chooser, extension of available decompositions, new setup based on restrictedgateset but adapted for trapped ion configurations * Addition of test file for the rz2rx decomposition Addition of test file for the rz2rx decomposition and edit to comments in the rz2rx file * Revert "Addition of test file for the rz2rx decomposition" This reverts commit 5aab56b7384d60d5ac09e5b08bebf14135b5a006. * Create rz2rx_test file Addition of test file for the rz2rx decomposition * Update rz2rx.py Update to comments * Update rz2rx_test.py Update to comments * Minor update: remove accidental file * Minor update rz2rx.py Corrected an angle. * Minor update rz2rx_test.py Edited comments. * Create h2rx_test.py Updated method for test_decomposition which tests that decomposition produces identical wave-state up to a global phase. * Improvement of the decomposition chooser; Note that basic restricted gate set will fail decomposing into Rxx because of the default chooser * Updates to h2rx and cnot2rxx * Create cnot2rxx_test.py Testing file for cnot2rxx decomposition. Includes updated method for test_decomposition which tests that decomposition produces identical wave-state up to a global phase. * basic rotation gates at an angle of 0 or 2pi are removed by the optimizer. basic rotation gates ignore now the global phase and are defined over 0:2pi * Update and create trapped_ion_decomposer_test.py * Minor update Documentation and comments. * Update on comments regarding Identity gates * Changes 1/2 : command can be printed with unicode symbols only via new to_String method; syntax correction; * Work in progress, is commutable * Update to decomposition test files rz2rx_test now tests each decomposition defined in rz2rx.all_defined_decomposition_rules Similar for cnot2rxx_test and h2rx_test * Revert "Work in progress, is commutable" This reverts commit 27f820cac337c81dbc037b5e3e0381b7e31db5b3. * minor fixes; revert rotation gates to [0;4pi) * fix comments * Fix a few issues with the trapped-ion setup - Store the sign of the last Ry gate on an engine-by-engine basis - Cleanup of some remaining print statements - Some stylistic issues fixed * Mostly fixing stylistic issues and some code cleanup * h2rx decomposition with correct global phase * cnot2rxx decomposition with correct global phase * Fix non-ASCII character in cnot2rxx.py * Fix some more files for non-ASCII characters * Specify encoding for files with non-ASCII characters * Fix test errors * Fix tests for Python 2.7 * Complete code coverage for trapped-ion setup Co-authored-by: Nguyen Damien <ngn.damien@gmail.com> 14 January 2020, 12:54:44 UTC
4bd6e6f Allow selection of drawing order in CircuitDrawer (solves #333) (#334) * included the possibility to draw the gates in the order they were added to the circuit * edited param names tests should pass now * solved comments * solved comments * passes tests * Test for unordered and ordered circuit drawing * Reindent files in _circuits * Minor adjustments to _drawer.py * added test_body_with_drawing_order * fixed tests and how draw_gates_in_parallel is interpreted * Fix failing tests with Python 2.7 One test of _to_latex_test.py was failing due to precision issues. 25 October 2019, 07:54:23 UTC
44ba35b Update constant math documentation to include list of pre-conditions (#331) 23 August 2019, 19:12:36 UTC
f27286f C++ simulator performance improvements (#329) * C++ simulator performance: make the swap-gate run in native C++ It was defined as a BasicMathGate before which made it run as python code through the emulate_math_wrapper. The new variant just uses its matrix representation to run it in native code. * C++ simulator performance: add dedicated C++ code for common math gates The BasicMathGate uses a C++ python wrapper (emulate_math_wrapper) to allow generic calculations which makes it very slow. This detects some math gates and provides a native C++ implementation for it. * C++ simulator performance: use larger memory alignment * C++ simulator performance: recycle large StateVector memory buffers This avoids costly std::vector copying/reallocations by using some static std::vector to reuse the allocated buffer (just by std::swap'ing a vector into a buffer for later use when it would be deallocated otherwise). * C++ simulator performance: improve compiler flags * Add test coverage for constant math emulation * Revert "Add test coverage for constant math emulation" This reverts commit 3bb8a2cc7fd595db48b0f4d260124ccfe60d7fcf. * Add test coverage for constant math emulation 20 August 2019, 08:12:09 UTC
back to top