From c4d9af947e0036e38abe8853477a637d3732c7c8 Mon Sep 17 00:00:00 2001 From: Vasco Ferreira Date: Fri, 25 Sep 2026 12:33:20 +0100 Subject: [PATCH] fix(trotter): patch broken statesList --- quest/src/api/trotterisation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quest/src/api/trotterisation.cpp b/quest/src/api/trotterisation.cpp index 6fd5781ba..517e9d529 100644 --- a/quest/src/api/trotterisation.cpp +++ b/quest/src/api/trotterisation.cpp @@ -110,7 +110,7 @@ void internal_applyAllTrotterRepetitions( // prepare control-qubit lists once for all invoked gadgets below auto ketCtrlsList = lists_getList64(controls, numControls); auto braCtrlsList = (qureg.isDensityMatrix)? util_getBraQubits(ketCtrlsList, qureg) : lists_getEmptyList64(); - auto statesList = lists_getList64(states, numControls * (states != nullptr)); + auto statesList = util_getList64OrAllOnes(states, numControls); qcomp arg = angle / reps;