Closed mergify[bot] closed 3 months ago
Thank you for opening a new pull request.
Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.
While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.
One or more of the following people are relevant to this code:
@Qiskit/terra-core
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
crates/qasm2/src/expr.rs | 1 | 94.02% | ||
crates/qasm2/src/lex.rs | 6 | 91.73% | ||
crates/qasm2/src/parse.rs | 12 | 96.23% | ||
<!-- | Total: | 19 | --> |
Totals | |
---|---|
Change from base Build 10475958824: | -0.02% |
Covered Lines: | 66802 |
Relevant Lines: | 74385 |
Summary
This PR fixes #12760
I have extended the
from_backend
method ofInstructionDurations
so that it supports bothBackendV1
andBackendV2
(alsoGenericBackendV2
). To get the instruction durations from theBackendV2
, I have used the attributetarget
. Also, inGenericBackendV2
, the(duration, error)
fordelay
andreset
is set to(None, None)
and thisNone
value raises an error in theupdate()
method ofInstructionDurations
. So, I am skipping the instructions which haveNone
as the duration (let me know if this is not what we want).@1ucian0, please review this and let me know if this is acceptable. If you want I can also add tests and/or new release notes for the changes I have made.
Thanks
Details and comments
This is an automatic backport of pull request #12941 done by Mergify.