Skip to content

Commit 8bb8566

Browse files
committed
Use std::cmp_* functions
1 parent 7cb2a87 commit 8bb8566

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ShorSimulator.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ ShorSimulator::simulate([[maybe_unused]] std::size_t shots) {
110110
}
111111

112112
// EXACT QFT
113-
for (std::int32_t i = 0; i < static_cast<std::int32_t>(2 * requiredBits);
114-
i++) {
113+
for (std::int32_t i = 0; std::cmp_less(i, 2 * requiredBits); i++) {
115114
if (verbose) {
116115
std::clog << "[ " << i + 1 << "/" << 2 * requiredBits
117116
<< " ] QFT Pass. dd size=" << rootEdge.size() << "\n";

0 commit comments

Comments
 (0)