-
Notifications
You must be signed in to change notification settings - Fork 2
Implement layer inference #18
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
Open
EarlMilktea
wants to merge
53
commits into
master
Choose a base branch
from
improve-ux
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,029
−800
Open
Changes from 30 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
664ad25
:recycle: Use simple tuple
EarlMilktea 1916e4d
:sparkles: Add ensure_optimal arg.
EarlMilktea cc866c0
:wrench: Check examples by mypy
EarlMilktea 074d9b8
:wrench: Update ruff lint
EarlMilktea 201f10b
:children_crossing: Enforce kwargs
EarlMilktea 83c5e69
:children_crossing: Add layer range checking
EarlMilktea 8e36621
:white_check_mark: Add tests
EarlMilktea bbfbebf
:boom: Change default value
EarlMilktea 887304d
:construction: Add layer inference
EarlMilktea aeb4b03
:children_crossing: Use covariant annotation
EarlMilktea 0aa58cd
:bug: Resolve import loop
EarlMilktea 13c8c4e
:bug: Add nodes
EarlMilktea 45593b0
:test_tube: Add tests
EarlMilktea 478cbc4
:see_no_evil: Ignore lcov output
EarlMilktea b1aff85
:white_check_mark: Fix test
EarlMilktea ff9aebe
:memo: Fix docstrings
EarlMilktea 5fac885
:memo: Update package docstring
EarlMilktea 52c5791
:safety_vest: Require connected graphs
EarlMilktea 5e923af
:white_check_mark: Fix test assets
EarlMilktea bbbab57
:pencil2: Fix typo
EarlMilktea 6a04543
:memo: Add parameters section
EarlMilktea ee1ae77
:construction: Add pflow support
EarlMilktea abe0342
:memo: Fix broken any link
EarlMilktea ee7246c
:twisted_rightwards_arrows: Merge branch 'master' into improve-ux
EarlMilktea 39687a6
:fire: Remove connectivity check
EarlMilktea bef1853
:white_check_mark: Add isolated test case
EarlMilktea f01f05a
:recycle: Hide infer_layer
EarlMilktea 32dacda
:children_crossing: Infer layer automatically if missing
EarlMilktea 4849939
:recycle: Refactor
EarlMilktea aeb0e8a
:truck: Rename infer_layer
EarlMilktea ee90522
:zap: Remove intermediate graph allocation
EarlMilktea 55a905f
:fire: Remove ensure_optimal
EarlMilktea 474208d
:construction: Split verifier
EarlMilktea b048b20
:construction: Expose inference again
EarlMilktea 3abcaf3
:recycle: Improve types
EarlMilktea 9c6d198
:children_crossing: Normalize names
EarlMilktea 43c1bce
:rotating_light: Apply clippy hints
EarlMilktea b42c850
:bug: Perform strict check
EarlMilktea 830fafe
:safety_vest: Capture ScopedXXX explicitly
EarlMilktea 620c24d
:white_check_mark: Fix test
EarlMilktea f3a867b
:recycle: Use alias
EarlMilktea 275185b
:recycle: Use stl
EarlMilktea 53def3c
:recycle: Remove validate.rs
EarlMilktea 8c8b348
:recycle: Remove custom Debug
EarlMilktea 41b42f1
:heavy_minus_sign: Remove hashbrown
EarlMilktea eb208d2
:heavy_plus_sign: Use maplit
EarlMilktea a26a97c
:zap: Compute odd_neighbors in-place
EarlMilktea d897bc7
:recycle: Use pub(crate)
EarlMilktea 8b9453b
:twisted_rightwards_arrows: Merge branch 'master' into improve-ux
EarlMilktea 145b5bf
:construction: Call infer_layers for validation
EarlMilktea 12d8e47
:children_crossing: Change error message
EarlMilktea 1254cd7
:coffin: Remove unused code
EarlMilktea 6a06853
:construction: Add special_edges
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -187,3 +187,4 @@ cobertura.xml | |
docs/build | ||
!docs/build/.nojekyll | ||
uv.lock | ||
lcov.info |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
"""Initialize the swiflow package.""" | ||
"""swiflow: Rust binding of generalized and pauli flow finding algorithms.""" |
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 |
---|---|---|
@@ -1,2 +1,8 @@ | ||
def find(g: list[set[int]], iset: set[int], oset: set[int]) -> tuple[dict[int, int], list[int]] | None: ... | ||
def verify(flow: tuple[dict[int, int], list[int]], g: list[set[int]], iset: set[int], oset: set[int]) -> None: ... | ||
def verify( | ||
flow: tuple[dict[int, int], list[int]], | ||
g: list[set[int]], | ||
iset: set[int], | ||
oset: set[int], | ||
optimal: bool, | ||
) -> None: ... |
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 |
---|---|---|
|
@@ -12,4 +12,5 @@ def verify( | |
iset: set[int], | ||
oset: set[int], | ||
plane: dict[int, Plane], | ||
optimal: bool, | ||
) -> None: ... |
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 |
---|---|---|
|
@@ -15,4 +15,5 @@ def verify( | |
iset: set[int], | ||
oset: set[int], | ||
pplane: dict[int, PPlane], | ||
optimal: bool, | ||
) -> None: ... |
Oops, something went wrong.
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.