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
ajavadia
left a comment
There was a problem hiding this comment.
this looks good. let's merge it soon so this can work with qiskit 1.0
Pull Request Test Coverage Report for Build 7809604102
💛 - Coveralls |
Summary
Fixes an issue preventing
DynamicInstructionDurations.from_backend(backend)from constructing the corresponding object with abackendwhose durations are not in units ofdt. Note that prior to Qiskit/qiskit#11501, aInstructionDurationsobject 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.