Skip to content

Commit

Permalink
Bug fix for cutensornet v2.5.0 (#845)
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`.

- [x] Add a new entry to the `.github/CHANGELOG.md` file, summarizing
the
      change, and including a link back to the PR.

- [x] 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:**

[sc-71130]

Set the `immutable` parameter value as `false` for the
`cutensornetStateApplyTensorOperator` to allow the following
`cutensornetStateUpdateTensorOperator` call.


**Description of the Change:**

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**

---------

Co-authored-by: ringo-but-quantum <[email protected]>
  • Loading branch information
multiphaseCFD and ringo-but-quantum authored Aug 9, 2024
1 parent 3993e0b commit 27813be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@

### Bug fixes

* Set the `immutable` parameter value as `false` for the `cutensornetStateApplyTensorOperator` to allow the following `cutensornetStateUpdateTensorOperator` call.
[(#845)](https://github.com/PennyLaneAI/pennylane-lightning/pull/845)

* Fix cuQuantum SDK path pass-though in CMake.
[(#831)](https://github.com/PennyLaneAI/pennylane-lightning/pull/831)

Expand Down
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.38.0-dev27"
__version__ = "0.38.0-dev28"
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class TNCudaBase : public TensornetBase<PrecisionT, Derived> {
/* const int32_t * stateModes */ stateModes.data(),
/* void * */ static_cast<void *>(dummy_device_data.getData()),
/* const int64_t *tensorModeStrides */ nullptr,
/* const int32_t immutable */ 1,
/* const int32_t immutable */ 0,
/* const int32_t adjoint */ 0,
/* const int32_t unitary */ 1,
/* int64_t * */ &id));
Expand Down

0 comments on commit 27813be

Please sign in to comment.