-
Notifications
You must be signed in to change notification settings - Fork 43
Parallelize collapse
method for lightning.qubit
with OpenMP
#962
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
Comments
Hi Thomas, for the benchmarking, should I just take the collapse function out and run it on my own laptop? I guess I don't have to install the whole package right? What's the possible range of values for Num_Qubits? |
Hi Xiaohan, yes, you may just benchmark |
Thanks! And I guess wire can be anything that satisfies (1+wire) < getNumQubits()? |
Hi Thomas, looks like I can't push my changes. Should I be added as a collaborator first? |
Hi @xiaohanzai, you will have to create a fork of the repository, where you can push to, and then you can create a PR to merge your branch to |
Hi Thomas, a few more questions before I submit for pull request...
|
Hi @xiaohanzai, Thank you for your clear and detailed communication!
|
Hi @maliasadi , thank you so much for your reply! Sorry I'm still quite confused about adding the tests. Should I add a test in I think because I took the collapse function out to the scaling test instead of compiling the whole pennylane package with a test, I'm getting quite confused what I should do right now... |
@xiaohanzai No need to update the Pytohn tests for now! Please go ahead and create the pull request with your changes. Feel free to include any additional benchmark scripts and filed to the PR. We'd be happy to review your code and continue the discussion there! |
Thanks! I just created a pull request. There doesn't seem to be option to put it ready for review though... |
Uh oh!
There was an error while loading. Please reload this page.
Important Note
Context
Recently, Mid-Circuit Measurement (MCM) support was added to the
lightning.qubit
backend. The performance of thecollapse
method is very import for the MCM support. Parallelize thecollapse
method withOpenMP
would boost the performance of MCM simulations usinglightning.qubit
.Requirements
The
collapse
method withOpenMP
support has to be implemented in thelightning.qubit
C++ backend. For more information about thecollapse
method, please refer to Pennylane-Lightning source code.collapse
method withOpenMP
in pennylane_lightning/core/src/simulators/lightning_qubit/StateVectorLQubit.hppcollapse
method is built againstOpenMP
or not.Num_Qubits
andOpenMP
threads number) and upload the results to the pull-request for further discussions.Don't hesitate to ask for clarification or raise any concerns regarding the issue. We'll be happy to discuss with you!
The text was updated successfully, but these errors were encountered: