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

Create read only simulation state vector #6248

Closed
wants to merge 4 commits into from
Closed

Conversation

NoureldinYosri
Copy link
Collaborator

@NoureldinYosri NoureldinYosri commented Aug 16, 2023

This class provides a limited set of functionalities provided by simulation state vector classes and bypasses the numpy limit on the number of dimensions numpy/numpy#5744 by not reshaping the array.

This class will be used as the return result for qsim simulator which will store the 1D numpy array representation of the simulation result without reshaping it. This is inorder to mitigate #6031

The user of qsim simulator will choose through a parameter whether they want the current behaviour or to use the new one.

Users can convert objects of this class to the buffered version using to_mutable_state which will only succeed if the number of qubits is less than or equal to the dimension limit of numpy (currently 32)

@CirqBot CirqBot added the size: M 50< lines changed <250 label Aug 16, 2023
@NoureldinYosri
Copy link
Collaborator Author

closing in favour of quantumlib/qsim#622

@NoureldinYosri NoureldinYosri deleted the sim_result branch September 19, 2023 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: M 50< lines changed <250
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants