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 7cb2a87 commit 8bb8566Copy full SHA for 8bb8566
src/ShorSimulator.cpp
@@ -110,8 +110,7 @@ ShorSimulator::simulate([[maybe_unused]] std::size_t shots) {
110
}
111
112
// EXACT QFT
113
- for (std::int32_t i = 0; i < static_cast<std::int32_t>(2 * requiredBits);
114
- i++) {
+ for (std::int32_t i = 0; std::cmp_less(i, 2 * requiredBits); i++) {
115
if (verbose) {
116
std::clog << "[ " << i + 1 << "/" << 2 * requiredBits
117
<< " ] QFT Pass. dd size=" << rootEdge.size() << "\n";
0 commit comments