Skip to content

Commit 6a19d57

Browse files
committed
Stab at fixing unit tests.
Signed-off-by: Eric Schweitz <[email protected]>
1 parent 596cfa5 commit 6a19d57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittests/integration/qubit_allocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#ifndef CUDAQ_BACKEND_STIM
1515

1616
std::vector<cudaq::complex> randomState(int numQubits) {
17-
std::vector<cudaq::complex> stateVec(1ULL << numQubits);
17+
std::vector<cudaq::complex> stateVec(2 * numQubits);
1818
std::generate(stateVec.begin(), stateVec.end(), []() -> cudaq::complex {
1919
thread_local std::default_random_engine
2020
generator; // thread_local so we don't have to do any locking

0 commit comments

Comments
 (0)