Closed wshanks closed 1 year ago
One additional bug I want to lump in with these -- when there is no control channel data in the Target, BackendData.control_channel
currently returns None
, but the signature in BackendV2
is documented as returning a list, so returning an empty list would be more faithful to the underlying class.
Informations
What is the current behavior?
BackendData.coupling_map
andBackendData.drive_freqs
assume thatTarget.build_coupling_map()
andTarget.qubit_properties
are iterable, but these attributes can also beNone
.Steps to reproduce the problem
This code produces:
What is the expected behavior?
No error
Suggested solutions
Check that the underlying properties are not
None
before iterating on them inBackendData
.