Skip to content

Commit 9ff4a80

Browse files
committed
Address the Rabbit's comments
1 parent 101f8a8 commit 9ff4a80

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

eval/eval_dd_package.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
#include <string>
4040
#include <utility>
4141

42-
static constexpr std::size_t SEED = 42U;
43-
4442
namespace dd {
4543
namespace {
4644

45+
constexpr std::size_t SEED = 42U;
46+
4747
struct Experiment {
4848
std::unique_ptr<Package> dd;
4949
nlohmann::basic_json<> stats = nlohmann::basic_json<>::object();

src/circuit_optimizer/CircuitOptimizer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,8 +1663,8 @@ struct CliffordBlock {
16631663
* @param maxBlockSize Maximum allowed block size
16641664
*/
16651665
[[nodiscard]] bool
1666-
checkExceedsMaxBlockSize(const std::set<Qubit>& used,
1667-
const std::size_t maxBlockSize) const noexcept {
1666+
checkFitsWithinMaxBlockSize(const std::set<Qubit>& used,
1667+
const std::size_t maxBlockSize) const noexcept {
16681668
std::size_t extra = 0;
16691669
for (const auto q : used) {
16701670
if (!blockQubits.contains(q)) {
@@ -1817,7 +1817,7 @@ void CircuitOptimizer::collectCliffordBlocks(QuantumComputation& qc,
18171817
if (!block.checkBlocked(used)) {
18181818
continue;
18191819
}
1820-
if (!block.checkExceedsMaxBlockSize(used, maxBlockSize)) {
1820+
if (!block.checkFitsWithinMaxBlockSize(used, maxBlockSize)) {
18211821
continue;
18221822
}
18231823

0 commit comments

Comments
 (0)