-
Notifications
You must be signed in to change notification settings - Fork 16
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
Scheduling based on mix frames #300
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few small questions
std::unordered_set<uint> mixFramesBlockIds = | ||
getMixFramesBlockIds(quantumGateCallSequenceOp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is a mix frame block id?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is a mix frame block id?
it's the block argument number of the corresponding mix frame
this function returns an unordered set of block argument numbers of the mix frames of a quantum gate; here block refers to the current block that includes the quantum gate call sequence op; I added comment and modified the names in 21961bb; please let me know what you think
if (mixFrameToNextAvailabilityMap.find(id) != | ||
mixFrameToNextAvailabilityMap.end()) { | ||
if (mixFrameToNextAvailabilityMap[id] < nextAvailableTimeOfAllMixFrames) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like this condition can be combined into a single boolean and if
? (can use an intermediary value)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
combined into a single boolean in 21961bb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Please update the copyright dates in the files changed to include 2024 (for some reason GitHub won't allow me to add a comment to lines that are not changed).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR introduces scheduling of a quantum circuit based on mix frames in order to reduce the overall duration of the scheduled pulse sequence.