Skip to content

Commit 570a224

Browse files
committed
🐛 Fix tests
1 parent fabcd7d commit 570a224

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/na/test_nagraphalgorithms.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ TEST_F(TestNAGraph, Coloring) {
159159
}
160160

161161
TEST_F(TestNAGraph, SequenceOrdering) {
162-
const auto& sequence = na::NAGraphAlgorithms::computeSequence(graph);
162+
const auto& sequence = na::NAGraphAlgorithms::computeSequence(graph, 20);
163163
const auto& moveable = sequence.first;
164164
// check that the order of moveable qubits is consistent
165165
auto order =
@@ -184,7 +184,7 @@ TEST_F(TestNAGraph, SequenceOrdering) {
184184
}
185185

186186
TEST_F(TestNAGraph, InteractionExists) {
187-
const auto& sequence = na::NAGraphAlgorithms::computeSequence(graph);
187+
const auto& sequence = na::NAGraphAlgorithms::computeSequence(graph, 20);
188188
const auto& moveable = sequence.first;
189189
const auto& fixed = sequence.second;
190190
// check that all interactions are part of the interaction graph
@@ -208,7 +208,7 @@ TEST_F(TestNAGraph, CoveredInteractions) {
208208
na::NAGraphAlgorithms::coveredEdges(graph, maxIndepSet);
209209
// TODO for some reason this must be a vector, set gives an error
210210
std::vector coveredEdgesVec(coveredEdges.cbegin(), coveredEdges.cend());
211-
const auto& sequence = na::NAGraphAlgorithms::computeSequence(graph);
211+
const auto& sequence = na::NAGraphAlgorithms::computeSequence(graph, 20);
212212
const auto& moveable = sequence.first;
213213
const auto& fixed = sequence.second;
214214
// check that all interactions that are covered by the independent set are

0 commit comments

Comments
 (0)