-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Environment
- Qiskit version: 1.2.0.dev0+8f6714d
- Python version: 3.8.19
- Operating system: MacOs
What is happening?
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
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working