-
Notifications
You must be signed in to change notification settings - Fork 67
Fix DynamicCircuitInstructionDurations.from_backend
for both Backend
versions
#787
Conversation
@mbhealy could you confirm if this fix is still necessary? |
Diego: |
There is also |
dt
before patchingDynamicCircuitInstructionDurations.from_backend
for both Backend
versions
add from_target method
as also an acceptable variable in qiskit
The new tests and |
also skip those that are not operational
with missing X 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.
this looks good. let's merge it soon so this can work with qiskit 1.0
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, @dieris can you make sure these changes are also reflected in qiskit-ibm-runtime?
Pull Request Test Coverage Report for Build 7809604102
💛 - Coveralls |
Summary
Fixes an issue preventing
DynamicInstructionDurations.from_backend(backend)
from constructing the corresponding object with abackend
whose durations are not in units ofdt
. Note that prior to Qiskit/qiskit#11501, aInstructionDurations
object of the parent class was created instead (with no duration patching).Details and comments
This is meant to fix the use case for dynamic circuits e.g.