KEMBAR78
Support measurement sampling seed for `cutensornet` backends by 1tnguyen · Pull Request #2398 · NVIDIA/cuda-quantum · GitHub
Skip to content

Conversation

@1tnguyen
Copy link
Collaborator

Description

  • This support has been added in cutensornet v2.5.

  • Majority of the code change is to propagate the Simulator-level random engine to all the State classes. These are references to the single instance at the backend level, which is seeded by the cudaq runtime.

  • Re-enable the test that was skipped due to the lack of this support.

Fixed #895

Test results of the re-enabled tests:

   Start 461: tensornet_GHZSampleTester.checkBroadcastRepeatability
5/7 Test #461: tensornet_GHZSampleTester.checkBroadcastRepeatability .........   Passed    1.57 sec
    Start 559: tensornet_mps_GHZSampleTester.checkBroadcastRepeatability
6/7 Test #559: tensornet_mps_GHZSampleTester.checkBroadcastRepeatability .....   Passed    2.04 sec

This feature has been added in 24.08 (cutensornet 2.5), hence adding the
support for it and re-enable the skipped test.

Signed-off-by: Thien Nguyen <thiennguyen@nvidia.com>
Signed-off-by: Thien Nguyen <thiennguyen@nvidia.com>
Copy link
Collaborator

@sacpis sacpis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with minor changes. Thanks @1tnguyen.

Signed-off-by: Thien Nguyen <thiennguyen@nvidia.com>
@1tnguyen 1tnguyen requested a review from sacpis November 20, 2024 22:35
Copy link
Collaborator

@sacpis sacpis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @1tnguyen.

Signed-off-by: Thien Nguyen <thiennguyen@nvidia.com>
@1tnguyen 1tnguyen merged commit d133531 into NVIDIA:main Nov 27, 2024
211 of 212 checks passed
@bettinaheim bettinaheim added the release notes Changes need to be captured in the release notes label Dec 10, 2024
@bettinaheim bettinaheim added this to the release 0.9.1 milestone Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release notes Changes need to be captured in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for random seed in tensornet and tensornet-mps backends

4 participants