-
Notifications
You must be signed in to change notification settings - Fork 1
Euler computations #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
a48d19e
copy euler of mf branch
masa10-f 207e47a
edit TODOs
masa10-f 9e8127f
add matrix utility method
masa10-f 1e5bae9
add test for euler
masa10-f 3d66021
add type-arg in NDArray
masa10-f 1e1d818
add type-arg in matrix
masa10-f 3c5477c
update test_euler
masa10-f 904216a
write doc about euler
masa10-f d3621d2
update docstring of euler
masa10-f 76da55e
create document of matrix.py
masa10-f e8279fe
update docstring of matrix
masa10-f 3ba4c8b
fix func name
masa10-f 5f6a021
update docstring
masa10-f 687a94d
fix ruff error
masa10-f 41272dd
Merge branch 'master' into euler
masa10-f 0c4dda9
fix docstring
masa10-f eb63098
:construction_worker: Add pre-commit for basic text checks
EarlMilktea fbcbc18
:rotating_light: Format text files
EarlMilktea ea23f23
add intersphinx map
masa10-f 767ff94
enable intersphinx for built-in and numpy func
masa10-f 0b428d7
enable intersphinx in matrix.py
masa10-f 4c0b02a
add shape check
masa10-f 203141b
use generic type
masa10-f 0b2649e
stabilize type
masa10-f 9784fad
fix type error
masa10-f 157f3d3
use list[Plane]
masa10-f cbb7241
enable PLC2701 in tests
masa10-f b6dc384
make two funcs public
masa10-f 090829f
update test and doc
masa10-f 0fec537
Merge remote-tracking branch 'origin/euler-ss' into euler
masa10-f 9f66199
version switch for type error
masa10-f ee09954
fix typo in docstring
masa10-f 93f06a2
:memo: Strip class specifiers
EarlMilktea 8bab9e9
:memo: Add auto links
EarlMilktea 58125b9
:heavy_plus_sign: Add mathjax plugin
EarlMilktea 81d6789
:construction: Use :math:
EarlMilktea 2031d16
:construction: Improve type stability
EarlMilktea 192c0c3
Merge branch 'master' into euler
masa10-f 5043ba8
replace with list(Plane)
masa10-f 47977b1
fix calculation
masa10-f 67e078b
use math rendering
masa10-f 4dc5544
:safety_vest: Check element size
EarlMilktea 38fa38d
:recycle: Improve type stability
EarlMilktea File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -13,4 +13,4 @@ Then, please fill in below: | |
|
|
||
| **Description of the change:** | ||
|
|
||
| **Related issue:** | ||
| **Related issue:** | ||
This file contains hidden or 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 hidden or 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,11 @@ | ||
| repos: | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v5.0.0 | ||
| hooks: | ||
| - id: check-added-large-files | ||
| - id: check-case-conflict | ||
| - id: check-yaml | ||
| - id: end-of-file-fixer | ||
| - id: fix-byte-order-marker | ||
| - id: mixed-line-ending | ||
| - id: trailing-whitespace |
This file contains hidden or 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 hidden or 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 hidden or 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,35 @@ | ||
| Euler | ||
| ===== | ||
|
|
||
| :mod:`graphix_zx.euler` module | ||
| ++++++++++++++++++++++++++++++ | ||
|
|
||
| .. automodule:: graphix_zx.euler | ||
|
|
||
| Local Operators | ||
| --------------- | ||
|
|
||
| .. autoclass:: graphix_zx.euler.LocalUnitary | ||
| :members: | ||
| :show-inheritance: | ||
|
|
||
| .. autoclass:: graphix_zx.euler.LocalClifford | ||
| :members: | ||
| :show-inheritance: | ||
|
|
||
| Functions | ||
| --------- | ||
|
|
||
| .. autofunction:: graphix_zx.euler.euler_decomposition | ||
|
|
||
| .. autofunction:: graphix_zx.euler.bloch_sphere_coordinates | ||
|
|
||
| .. autofunction:: graphix_zx.euler.is_close_angle | ||
|
|
||
| .. autofunction:: graphix_zx.euler.is_clifford_angle | ||
|
|
||
| .. autofunction:: graphix_zx.euler.meas_basis_info | ||
|
|
||
| .. autofunction:: graphix_zx.euler.update_lc_lc | ||
|
|
||
| .. autofunction:: graphix_zx.euler.update_lc_basis | ||
This file contains hidden or 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,12 @@ | ||
| Matrix | ||
| ====== | ||
|
|
||
| :mod:`graphix_zx.matrix` module | ||
| +++++++++++++++++++++++++++++++ | ||
|
|
||
| .. automodule:: graphix_zx.matrix | ||
|
|
||
| Functions | ||
| --------- | ||
|
|
||
| .. autofunction:: graphix_zx.matrix.is_unitary |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -4,4 +4,6 @@ Module reference | |
| .. toctree:: | ||
| :maxdepth: 2 | ||
|
|
||
| common | ||
| common | ||
| euler | ||
| matrix | ||
This file contains hidden or 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,4 +1,4 @@ | ||
| Graphix-zx examples | ||
| ==================== | ||
|
|
||
| Here are a few examples. | ||
| Here are a few examples. |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.