We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 596cfa5 commit 6a19d57Copy full SHA for 6a19d57
unittests/integration/qubit_allocation.cpp
@@ -14,7 +14,7 @@
14
#ifndef CUDAQ_BACKEND_STIM
15
16
std::vector<cudaq::complex> randomState(int numQubits) {
17
- std::vector<cudaq::complex> stateVec(1ULL << numQubits);
+ std::vector<cudaq::complex> stateVec(2 * numQubits);
18
std::generate(stateVec.begin(), stateVec.end(), []() -> cudaq::complex {
19
thread_local std::default_random_engine
20
generator; // thread_local so we don't have to do any locking
0 commit comments