Skip to content
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

Surround filter #257

Merged
merged 17 commits into from
Aug 5, 2024
Merged

Surround filter #257

merged 17 commits into from
Aug 5, 2024

Conversation

edyounis
Copy link
Member

@edyounis edyounis commented Jul 11, 2024

New features:

  • Circuit.surround now can take a scoring function and a filter
    • The filter will prune the search space if provided
    • The scoring function can be used to change the scoring mechanism from the default gate count
    • The method is also now faster and more robust as it has been updated with the DAG methods
    • The starting point can now also be a region
  • Circuit.next and Circuit.prev can now also take a CircuitRegion and return the next or prev points of the entire region
  • Implemented CouplingGraph.is_linear

Bug Fixes:

  • Fixed issues in circuit grid iteration with exclude=True
  • Fixed Circuit.check_region missing bad regions where a gate would be half-in-half-out

@edyounis edyounis requested a review from mtweiden July 11, 2024 01:15
@edyounis edyounis requested a review from alonkukl July 18, 2024 11:48
@edyounis edyounis mentioned this pull request Jul 18, 2024
bqskit/ir/circuit.py Outdated Show resolved Hide resolved
tests/ir/circuit/test_region_methods.py Show resolved Hide resolved
bqskit/ir/circuit.py Show resolved Hide resolved
@edyounis edyounis requested a review from mtweiden August 1, 2024 17:26
@edyounis edyounis merged commit 2dd641b into main Aug 5, 2024
17 checks passed
@edyounis edyounis deleted the surround-filter branch August 5, 2024 14:37
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.

3 participants