Add TICK command and edge scheduler for temporal scheduling#126
Merged
Add TICK command and edge scheduler for temporal scheduling#126
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #126 +/- ##
==========================================
+ Coverage 68.35% 74.32% +5.97%
==========================================
Files 21 21
Lines 2035 2154 +119
Branches 326 360 +34
==========================================
+ Hits 1391 1601 +210
+ Misses 592 478 -114
- Partials 52 75 +23 🚀 New features to boost your workflow:
|
masa10-f
commented
Nov 10, 2025
Collaborator
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
d1ssk
reviewed
Nov 12, 2025
d1ssk
approved these changes
Nov 13, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Before submitting, please check the following:
pytest)ruffmypyandpyrightmake htmlin./docs/- you may need to install dependency for sphinx docs, seedocs/requirements.txt.)Context:
This PR implements temporal scheduling features for MBQC (Measurement-Based Quantum Computing) patterns. The TICK command provides time slice boundary markers, and the edge scheduler automatically schedules entanglement operations based on node preparation times.
Description of the change:
This PR introduces two major features:
TICK Command: A time slice boundary marker that enables temporal scheduling in MBQC patterns
Edge Scheduler: Automatic entanglement operation scheduling based on node preparation times
entangle_timeattribute to Scheduler for tracking entanglement operation timingauto_schedule_entanglement()method to automatically schedule CZ gates when both nodes are prepareddetailed_timelineproperty for comprehensive scheduling information including entanglement operationscompress_schedule()function to support entanglement time compressionScheduler Integration: Enhanced qompile() to support temporal scheduling
schedulerparameter to qompile() for custom schedulinginsert_tickparameter to enable TICK command insertion between time slicesTests: Added comprehensive test suite
test_simulator_with_tick_commands()for TICK command handling in PatternSimulatortest_stim_compile_with_tick_commands()for TICK command compilation to Stim formatExamples: Added
entanglement_scheduling_demo.pydemonstrating edge scheduler featuresAll tests pass (220 tests), and code quality checks (mypy, pyright, ruff) pass successfully.
Related issue:
Closes #99