-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### New features * Added functions to generate the ``(A, b, c)`` triples for the Fock-Bargmann representation of several states and gates. [(#338)](#338) ### Breaking changes ### Improvements ### Bug fixes * Fixing a bug in `_transform_gaussian` in transformation.py that modifies the input state's cov and means. [(#349)](#349) * Fixing a bug in `general_dyne` in physics/gaussian.py that returns the wrong probability and outcomes with given projection. [(#349)](#349) ### Documentation ### Tests ### Contributors @SamFerracin @ziofil @sylviemonet --------- Co-authored-by: Sebastián Duque Mesa <[email protected]> Co-authored-by: JacobHast <[email protected]> Co-authored-by: elib20 <[email protected]> Co-authored-by: ziofil <[email protected]> Co-authored-by: ziofil <[email protected]> Co-authored-by: Luke Helt <[email protected]> Co-authored-by: zeyueN <[email protected]> Co-authored-by: Robbe De Prins <[email protected]> Co-authored-by: Robbe De Prins (UGent-imec) <[email protected]> Co-authored-by: Yuan <[email protected]> Co-authored-by: Ryk <[email protected]> Co-authored-by: Gabriele Gullì <[email protected]> Co-authored-by: Yuan Yao <[email protected]> Co-authored-by: Yuan Yao <[email protected]> Co-authored-by: heltluke <[email protected]> Co-authored-by: Tanner Rogalsky <[email protected]> Co-authored-by: Jan Provazník <[email protected]>
- Loading branch information
1 parent
e235882
commit 5a823a4
Showing
50 changed files
with
3,824 additions
and
1,269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Docs tests | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
pull_request: | ||
paths: | ||
- '.github/workflows/tests.yml' | ||
- 'mrmustard/**' | ||
- 'pyproject.toml' | ||
- 'poetry.lock' | ||
- 'pytest.ini' | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
env: | ||
HYPOTHESIS_PROFILE: ci | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --no-cache-dir --upgrade pip | ||
pip install --no-cache-dir poetry==1.8.0 | ||
poetry config virtualenvs.create false | ||
poetry install --extras "ray" --with dev | ||
- name: Run tests | ||
run: | | ||
python -m pytest --doctest-modules mrmustard/physics/ansatze.py | ||
python -m pytest --doctest-modules mrmustard/physics/representations.py | ||
python -m pytest --doctest-modules mrmustard/lab_dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
mrmustard.lab_dev | ||
================= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
lab_dev/wires | ||
|
||
.. currentmodule:: mrmustard.lab_dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
mrmustard.lab_dev.wires | ||
======================= | ||
|
||
.. currentmodule:: mrmustard.lab_dev.wires | ||
|
||
.. automodapi:: mrmustard.lab_dev.wires | ||
:no-heading: | ||
:include-all-objects: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Bargmann | ||
======== | ||
Calculations on Bargmann objects | ||
================================ | ||
|
||
.. currentmodule:: mrmustard.physics.bargmann | ||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
.. automodapi:: mrmustard.physics.bargmann | ||
:no-heading: | ||
:include-all-objects: | ||
utils/triples | ||
utils/bargmann_calculations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Calculations on Bargmann objects | ||
================================ | ||
|
||
.. currentmodule:: mrmustard.physics.bargmann | ||
|
||
.. automodapi:: mrmustard.physics.bargmann | ||
:no-heading: | ||
:include-all-objects: |
4 changes: 2 additions & 2 deletions
4
doc/code/physics/fock.rst → doc/code/physics/utils/fock_calculations.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Fock | ||
==== | ||
Calculations on Fock objects | ||
============================ | ||
|
||
.. currentmodule:: mrmustard.physics.fock | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
doc/code/physics/gaussian.rst → ...e/physics/utils/gaussian_calculations.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Abc triples for Bargmann representation | ||
======================================= | ||
|
||
.. currentmodule:: mrmustard.physics.triples | ||
|
||
.. automodapi:: mrmustard.physics.triples | ||
:no-heading: | ||
:include-all-objects: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.