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

Set max_largest_intermediate for hybridq #31

Merged
merged 1 commit into from
Jan 20, 2022
Merged

Conversation

stavros11
Copy link
Member

Fixes #30. Apparently there is a max_largest_intermediate option in hybridq's simulate which is relevant for their tensor network simulator but, at least according to the documentation, is only used to raise an error for the state vector simulator. Here I hardcode a very high value (40 qubits) in this parameter so that we never get the error. I tried on qibomachine CPU and it works now, previously I was getting the same error. @mlazzarin can you also try with your examples?

By the way, I have not checked in detail where this value is used in their code, so I am not sure if setting it to a very high number has any effect in performance when simulating smaller circuits.

@stavros11 stavros11 changed the base branch from main to libraries January 19, 2022 15:17
@mlazzarin
Copy link
Contributor

Thank you! Now everything works fine for me.

@scarrazza scarrazza merged commit 9c05630 into libraries Jan 20, 2022
@stavros11 stavros11 deleted the maxhybridq branch February 26, 2022 11:38
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

Successfully merging this pull request may close these issues.

Hybridq does not work with circuits of more than 26 qubits
3 participants