You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While migrating test/python/transpiler/test_instruction_durations.py to BackendV2 (see #12660 for context), I realized that InstructionDurations.from_backend does not support BackendV2 instances.
How can we reproduce the issue?
from qiskit.providers.fake_provider import GenericBackendV2
from qiskit.transpiler import InstructionDurations
backend = GenericBackendV2(num_qubits=2, calibrate_instructions=True, seed=42)
InstructionDurations.from_backend(backend)
AttributeError: 'GenericBackendV2' object has no attribute 'properties'
What should happen?
Either this method (preferred option) or a potential InstructionDurations.from_backendV2 should support creating an InstructionDurations from a BackendV2, the current preferred way.
Any suggestions?
No response
The text was updated successfully, but these errors were encountered:
Hi @1ucian0, I was looking into this issue and had a question. I looked at the BackendV1 fake backends and they are using old IBM device data for the properties and so I was wondering what date and time should be used to create the properties dictionary for GenericBackendV2?
I looked at the BackendV1 fake backends and they are using old IBM device data for the properties and so I was wondering what date and time should be used to create the properties dictionary for GenericBackendV2?
Thanks for explaining this in #12901 . The PR to understand this question. The point is to construct InstructionDuration from a BackendV2 without extending BackendV2. This might not be an easy issue.
Environment
What is happening?
While migrating
test/python/transpiler/test_instruction_durations.py
to BackendV2 (see #12660 for context), I realized thatInstructionDurations.from_backend
does not supportBackendV2
instances.How can we reproduce the issue?
What should happen?
Either this method (preferred option) or a potential
InstructionDurations.from_backendV2
should support creating anInstructionDurations
from a BackendV2, the current preferred way.Any suggestions?
No response
The text was updated successfully, but these errors were encountered: