Skip to content

[CQT-361] - 2-Proper order schedule#626

Merged
elenbaasc merged 36 commits intodevelopfrom
CQT-361-2-Proper-order-schedule
Oct 22, 2025
Merged

[CQT-361] - 2-Proper order schedule#626
elenbaasc merged 36 commits intodevelopfrom
CQT-361-2-Proper-order-schedule

Conversation

@elenbaasc
Copy link
Copy Markdown
Collaborator

@elenbaasc elenbaasc commented Oct 10, 2025

  • Processing control instructions (barrier and wait) added to the quantify-scheduler exporter.
  • Introduced the _Scheduler visitor and OperationRecord
  • Implementation performs As Late As Possible (ALAP) scheduling: the Scheduler processes the control instructions in reverse.
  • Tests added.

TODO: Update Changelog after OpenSquirrel 0.7.0 release.

NOTE: This branch has additional base development branches that can be removed after merging to develop. These branches are:

Add wait extended functionality in exporter.
Add wait extended instruction tests.
@elenbaasc elenbaasc changed the title [CQT-361] - 2 proper order schedule [CQT-361] - 2 Proper order schedule Oct 10, 2025
@elenbaasc elenbaasc changed the title [CQT-361] - 2 Proper order schedule [CQT-361] - 2-Proper order schedule Oct 10, 2025
Fix lint and type errors.
rares1609
rares1609 previously approved these changes Oct 16, 2025
Copy link
Copy Markdown
Contributor

@rares1609 rares1609 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion, the implementation itself is good. I was not able to find anything that might critically hinder the functionality, or otherwise improve it.

Most of my comments focus primarily on possible extra (stress) tests that check whether quantify_scheduler_exporter can handle edge cases such as empty circuits, negative wait times or overly complex circuits.

I will mark it as approved for the scenario in which you think the tests are redundant.

Comment thread opensquirrel/passes/exporter/quantify_scheduler_exporter.py
Comment thread opensquirrel/passes/exporter/quantify_scheduler_exporter.py
Comment thread tests/passes/exporter/test_quantify_scheduler_exporter.py
Comment thread tests/passes/exporter/test_quantify_scheduler_exporter.py
Comment thread tests/passes/exporter/test_quantify_scheduler_exporter.py
Comment thread tests/passes/exporter/test_quantify_scheduler_exporter.py
Comment thread tests/passes/exporter/test_quantify_scheduler_exporter.py
Resolve PR comments.
Fix wait and barrier implementation.
Copy link
Copy Markdown
Contributor

@rares1609 rares1609 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good to me! 💯 I'd say its good to merge.

@elenbaasc elenbaasc merged commit b9f21e8 into develop Oct 22, 2025
16 checks passed
@elenbaasc elenbaasc deleted the CQT-361-2-Proper-order-schedule branch October 22, 2025 07:14
@elenbaasc elenbaasc restored the CQT-361-2-Proper-order-schedule branch October 22, 2025 07:14
@elenbaasc elenbaasc deleted the CQT-361-2-Proper-order-schedule branch March 10, 2026 09:47
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