Skip to content

Commit

Permalink
Silence warnings for NDPermuter file (#750)
Browse files Browse the repository at this point in the history
### 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`](../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
the
      change, 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:** This silences the warnings issued from codefactor for the
NDPermuter class.

**Description of the Change:** As above.

**Benefits:** Prevents false warnings in other PRs

**Possible Drawbacks:** May miss opportunity for improvements to this
class.

**Related GitHub Issues:**

---------

Co-authored-by: ringo-but-quantum <[email protected]>
Co-authored-by: Ali Asadi <[email protected]>
  • Loading branch information
3 people authored Jun 3, 2024
1 parent 6ca460a commit 40ce6f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pennylane_lightning/core/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.37.0-dev24"
__version__ = "0.37.0-dev25"
2 changes: 2 additions & 0 deletions pennylane_lightning/core/src/utils/NDPermuter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include "Error.hpp"

// NOLINTBEGIN
// LCOV_EXCL_START
namespace Pennylane::Util {

Expand Down Expand Up @@ -295,3 +296,4 @@ template <size_t BLOCKSIZE = 1024> class DefaultPermuter {

} // namespace Pennylane::Util
// LCOV_EXCL_END
// NOLINTEND

0 comments on commit 40ce6f8

Please sign in to comment.