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.
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
InstructionDurations from BackendV2 #11528
base: main
Are you sure you want to change the base?
InstructionDurations from BackendV2 #11528
Changes from 8 commits
f40808e
1c736b0
cf7fbd9
c60f8ae
7f3f763
2868b41
7828930
8dd3fb4
795bf61
a02ad0c
5ccc547
37229f8
e91f71c
55aca1c
bdbe82d
2fe1a4f
7e357f1
41ac00b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
to fix doc error
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.
Is there any change in code behavior with this PR?
dtm
is acquisition sampling rate and doesn't impact the instruction duration.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.
@nkanazawa1989 ,
According to,
qiskit/qiskit/transpiler/instruction_durations.py
Line 76 in 828ad4d
I should get
TranspilerError
ifdt
!=dtm
, I just checked it, and found it doesn't.So, I added this line in release note and added test
test_works_unequal_dt_dtm
to make sure this case is covered :)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.
The document should be wrong. See p.33 of https://arxiv.org/abs/1809.03452. dtm defines the sampling rate of digitizer, which can be independent of dt that defines the sampling rate of AWG.
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.
I think this upgrade note is not necessary because
TranspilerError
was not actually raised (just accidentally documented).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 the purpose of this test?
InstructionDuration
is the object used for scheduling, anddtm
doesn't matter.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.
@nkanazawa1989 , This line was the motivation:
qiskit/qiskit/transpiler/instruction_durations.py
Line 76 in 828ad4d
Am I missing something