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

Use cuda to improve speed for registers with many qubits #16

Open
aromanro opened this issue Aug 21, 2023 · 0 comments
Open

Use cuda to improve speed for registers with many qubits #16

aromanro opened this issue Aug 21, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@aromanro
Copy link
Owner

The project is built with omp turned on and when it used the big matrices obtained by tensor product it benefited from it. Currently those big matrices are avoided, the tensor product matrix and its product with the state vector are optimized by taking advantage of the structure of the matrix.
The code for applying a quantum gate now does a single loop over the basis states. This could be parallelized using open mp, for a big register. I tried a quick hack but unfortunately for small registers there is a noticeable slowing down due of the omp overhead. I might try to avoid it in the future, for now the omp pragmas stay commented out there.

Nevertheless, for big registers cuda could be used (I would favor something that works on some other hardware, to not be tied to nvidia, such open cl or even compute shaders, but cuda is more performant and when performance is needed...), that could improve the speed quite a bit.

@aromanro aromanro added the enhancement New feature or request label Aug 21, 2023
@aromanro aromanro self-assigned this Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant