-
Notifications
You must be signed in to change notification settings - Fork 67
Pass backend properties in a sane manner. #85
Comments
FYI, there are a couple of other easy ways to do this today, using the
But I agree that this can be simplified as proposed in this issue. |
That is true because someone does the for-loop behind the scenes for you. |
BTW, Is terra the right place to fix this then? @mtreinish @jyu00 |
As someone who had to parse through the properties file, I agree it can use some improvement. But as @rathishcholarajan pointed out, the structure of the backend properties is defined by |
My goal is for backend properties and backend configuration to disappear from the user facing backend api. It shouldn't have ever been a user facing class, it started as just an marshmallow object model of the iqx wire protocol for the properties data and the API is basically a 1:1 mapping with the json format. I've proposed dropping it from |
@mtreinish it's nice to decouple the user interface from the backend api! |
Yeah I am good with that. |
What is the expected enhancement?
Currently the backend properties are a nightmare to parse through. Basically one has to go through nested lists of items to find what one is looking for. For example, finding the
readout_error
on all the qubits requires:This is not an ideal way to do things.
The interface should be changed so that it is easier to extract the data needed. For example it is easy to recast the above to look something like:
where
qubit
here is an object representing the qubit (As opposed to a list):with items accessible in a logic manner, e.g.
Because this is a new package we have the opportunity to do things better this time around.
The text was updated successfully, but these errors were encountered: