Skip to content

Refactor 36#39

Merged
jbolns merged 18 commits into
mainfrom
refactor_36
Mar 11, 2026
Merged

Refactor 36#39
jbolns merged 18 commits into
mainfrom
refactor_36

Conversation

@jbolns

@jbolns jbolns commented Mar 10, 2026

Copy link
Copy Markdown
Collaborator

Improves upon #36 by:

  • Reorganising method to deliver run times improvements
  • Enabling short/long checks by way of optional parameter (no need to change core beam objects, yet)
  • Set new method as default
  • Delete old method and related facilities
  • Lint

Altogether, PR enables about 93s -> 40.7s runtime improvement in measured test (pyzx_random 5 qubit by 15 depth, seed:42, first_spider), with ballpark similar 2x speed improvements in other tests.

dynerowicz-seweryn and others added 18 commits March 5, 2026 19:40
- Parallel beams may intersect if they share an intersection of at least one point.
…ation.

- No longer computing any determinants or the multiple cross products.
- Integrated intersection constistency checking into intersects(..).
- Cleaned up comments for documentation purposes.
…ort/long checks & lint primary files & delete PR tests
Combo of typo and typing fixes by @xbb

- Fixed a bounding box check typo in check_skip_move
- Fixed tgt_coords handling in check_skip_move, which previously passed a list to split_critical_beams where a single item is expected. Added a warning log (stderr) if more than one element is unexpectedly present.
- Fixed some type annotations

Note about the type annotations:
- I'm not certain whether src_tgt_ids can ever be None, but since it's not handled in both check_critical_beams and the currently unused split_critical_beams, I removed None from latter's type annotations.
- Further up the call chain None is still annotated for this argument, but I didn't change it there since I'm not sure what's the intended behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants