-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add clang-tidy checks, runtime and compile time information, a C++ kernel test #253
Conversation
Hello. You may have forgotten to update the changelog!
|
…ennylane-lightning into pre_better_kernel_dispatch
Codecov Report
@@ Coverage Diff @@
## master #253 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 379 379
=========================================
Hits 379 379
Continue to review full report at Codecov.
|
option_spec = {'name': directives.unchanged, | ||
'description': directives.unchanged, | ||
'link': directives.unchanged} | ||
option_spec = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is just formatted using black
@@ -8,19 +8,20 @@ | |||
import warnings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is also just formatted with black
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @chaeyeunpark! Looking forward to review the followup PRs 🚀
pennylane_lightning/src/tests/Test_GateImplementations_CompareKernels.cpp
Show resolved
Hide resolved
pennylane_lightning/src/tests/Test_GateImplementations_CompareKernels.cpp
Show resolved
Hide resolved
Co-authored-by: Ali Asadi <ali@xanadu.ai>
Co-authored-by: Ali Asadi <ali@xanadu.ai>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @chaeyeunpark
I have a few comments and suggestions.
Co-authored-by: Ali Asadi <ali@xanadu.ai>
…ennylane-lightning into pre_better_kernel_dispatch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fantasic @chaeyeunpark
I have a few questions:
- Do we want this class to be public facing https://pennylane-lightning--253.org.readthedocs.build/en/253/api/structPennylane_1_1registerBeforeMain.html#exhale-struct-structPennylane-1-1registerBeforeMain as it seems to be registered in the docs several times with diff template params (see here)
- As above but with this
- Do the gate kernel definition guidelines still work in the same way as listed on the site?
- Should the PR be renamed to something more representative of the changes?
@@ -68,7 +72,7 @@ def __getattr__(cls, name): | |||
# -- General configuration ------------------------------------------------ | |||
|
|||
# If your documentation needs a minimal Sphinx version, state it here. | |||
needs_sphinx = '1.6' | |||
needs_sphinx = "3.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this matches the other PL repo sphinx versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is from Ali's request. #253 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the minimum Sphinx version in PL too; see https://github.com/PennyLaneAI/pennylane/blob/d29142589078a1508b2aa7bfe7906311e0d728b3/doc/conf.py#L27
@@ -231,22 +231,22 @@ def __getattr__(cls, name): | |||
"download_button": "#19b37b", | |||
} | |||
|
|||
edit_on_github_project = 'XanaduAI/pennylane-lightning' | |||
edit_on_github_branch = 'master/doc' | |||
edit_on_github_project = "PennyLaneAI/pennylane-lightning" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, but is it from Ali 😄
Hi @mlxd, I have cleared documents and renamed the PR. The documentation for adding kernel remains the same in this PR but will be changed in a subsequent PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @chaeyeunpark! I couldn't find anything else to add.
Before submitting
Please complete the following checklist when submitting a PR:
All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to the
tests
directory!All new functions and code must be clearly commented and documented.
If you do make documentation changes, make sure that the docs build and
render correctly by running
make docs
.Ensure that the test suite passes, by running
make test
.Add a new entry to the
.github/CHANGELOG.md
file, summarizing thechange, and including a link back to the PR.
Ensure that code is properly formatted by running
make format
.When all the above are checked, delete everything above the dashed
line and fill in the pull request template.
Context: As PR #245 becomes too huge, splitting is required. This is the first part of it.
Description of the Change: There are miscellaneous changes. Some are listed below:
.clang-tidy
and source code accordingly.doc
are formatted.Test_GateImplementations_CompareKernels.cpp
)tests/test_measure.py
(a single qubit state is provided butdev.probability
is called with two wires)Benefits:
Possible Drawbacks:
Related GitHub Issues: