Skip to content

Commit

Permalink
Fix a code comment
Browse files Browse the repository at this point in the history
Signed-off-by: Thien Nguyen <[email protected]>
  • Loading branch information
1tnguyen committed Nov 20, 2024
1 parent 403b656 commit 325f9aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions runtime/nvqir/cutensornet/tensornet_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,9 @@ TensorNetState::sample(const std::vector<int32_t> &measuredBitIds,
&numHyperSamples, sizeof(numHyperSamples)));

// Generate a random seed from the backend simulator's random engine.
// e.g., if the user set the seed, this will make sampling sequence
// deterministic. Note: after a random seed setting at the user's level,
// Note: after a random seed setting at the user's level,
// consecutive `cudaq::sample` calls will still return different results
// (yet deterministic). i.e., the seed that we send to cutensornet should
// (yet deterministic), i.e., the seed that we send to cutensornet should
// not be the user's seed.
const int32_t rndSeed = m_randomEngine();
HANDLE_CUTN_ERROR(cutensornetSamplerConfigure(
Expand Down

0 comments on commit 325f9aa

Please sign in to comment.