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

Expose more information about parameter names in pubs #13691

Open
yaelbh opened this issue Jan 20, 2025 · 0 comments
Open

Expose more information about parameter names in pubs #13691

yaelbh opened this issue Jan 20, 2025 · 0 comments

Comments

@yaelbh
Copy link
Contributor

yaelbh commented Jan 20, 2025

Given a bindings array, it is natural to ask for the name of the parameters. Currently the best way I can see to do it is:

np.array(list(chain.from_iterable(bindings_array.data)))

This suggests to add a function (or a property) BindingsArray.parameter_names.

In addition, document that the columns of BindingsArray.as_array match parameter_names when as_array's parameters argument is not used.

Source of these requests, by @wshanks: Qiskit/qiskit-ibm-runtime#2093 (review)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant