PennyLaneAI / pennylane-lightning

The PennyLane-Lightning plugin provides a fast state-vector simulator written in C++ for use with PennyLane
https://docs.pennylane.ai/projects/lightning
Apache License 2.0
88 stars 38 forks source link

Add LM implementations of CSWAP & Toffoli gates #315

Closed multiphaseCFD closed 2 years ago

multiphaseCFD commented 2 years ago

Before posting an issue

Search existing GitHub issues to make sure the issue does not already exist: https://github.com/xanaduai/pennylane-lightning/issues

If posting a PennyLane-Lightning issue, delete everything above the dashed line, and fill in the template. If the issue is a bug, start the title of the issue with [BUG].

If making a feature request, delete the following template and describe, in detail, the feature and why it is needed.

For general technical details check out our documentation: https://pennylane-lightning.readthedocs.io/


Issue description

Description of the issue - include code snippets and screenshots here if relevant. You may use the following template below

Source code and tracebacks

Please include any additional code snippets and error tracebacks related to the issue here.

Additional information

Any additional information, configuration or data that might be necessary to reproduce the issue.

chaeyeunpark commented 2 years ago

Thanks @multiphaseCFD for taking this! I expect that LM version of those gates do not really give a visible speed-up (or can be slower), but it is better to see how it works.

multiphaseCFD commented 2 years ago

Thanks @multiphaseCFD for taking this! I expect that LM version of those gates do not really give a visible speed-up (or can be slower), but it is better to see how it works.

Thanks @chaeyeunpark! I agree and will try to work on it later.