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

Trim response to active qubits/variables only #166

Open
randomir opened this issue May 10, 2018 · 1 comment
Open

Trim response to active qubits/variables only #166

randomir opened this issue May 10, 2018 · 1 comment

Comments

@randomir
Copy link
Member

Currently result/samples are expanded to full length of working qubits (2048) even when user has only a couple of active ones.

@randomir
Copy link
Member Author

It's easy to trim the trailing inactive qubits, but if we're using a list for the response, "holes" have to filled out with (perhaps) NaNs. The alternative is to, by default, use dict/mapping for the response, and only if user requested numpy_matrix, return the complete matrix with NaNs inplace of inactive qubits. In that case, make sure active_variables is exposed and it can easily be used for selecting only the active ones from the response matrix.

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