Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pulse builder to support (fake) V2 backend #9420

Closed
nkanazawa1989 opened this issue Jan 23, 2023 · 2 comments
Closed

Update pulse builder to support (fake) V2 backend #9420

nkanazawa1989 opened this issue Jan 23, 2023 · 2 comments
Assignees
Labels
mod: pulse Related to the Pulse module type: feature request New feature or request
Milestone

Comments

@nkanazawa1989
Copy link
Contributor

What should we add?

Currently this code doesn't work.

from qiskit import pulse
from qiskit.providers.fake_provider import FakeHanoiV2

backend = FakeHanoiV2()
with pulse.build(backend) as sched:
    control = pulse.control_channels((1, 0))

AttributeError: 'FakeHanoiV2' object has no attribute 'configuration'

In the fake V2 backend, support for legacy attributes .configuration .defaults .properties are intentionally dropped, though it is supported by the real "IBM" V2 backend for backward compatibility. Because there is no guarantee these attributes exist, we should update the pulse builder functions to use to new attributes.

We can directly modify functions without considering backward compatibility and insert the converter at

https://github.com/Qiskit/qiskit-terra/blob/247c29899e5d3e5b46b7aab63156c175e974579a/qiskit/pulse/builder.py#L586-L587

@nkanazawa1989 nkanazawa1989 added type: feature request New feature or request mod: pulse Related to the Pulse module labels Jan 23, 2023
@nkanazawa1989 nkanazawa1989 added this to the 0.24.0 milestone Jan 23, 2023
@to24toro
Copy link
Contributor

I will try it as my first issue of qiskit-pulse.

@nkanazawa1989
Copy link
Contributor Author

This has been resolved by #10150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod: pulse Related to the Pulse module type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants