Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: implement quantum problem set filter #278

Closed
wants to merge 13 commits into from
Closed
6 changes: 4 additions & 2 deletions tests/unit/test_solving.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_solve(
) -> None:
solver = CSPSolver(all_particles)
result = solver.find_solutions(quantum_number_problem_set)
assert len(result.solutions) != 0
assert len(result.solutions) == 19


def test_solve_with_filtered_quantum_number_problem_set(
Expand Down Expand Up @@ -370,6 +370,8 @@ def quantum_number_problem_set(request) -> QNProblemSet:
)
problem_sets = stm.create_problem_sets()
qn_problem_sets = [
p.to_qn_problem_set() for pl in problem_sets.values() for p in pl
p.to_qn_problem_set()
for strength in sorted(problem_sets)
for p in problem_sets[strength]
redeboer marked this conversation as resolved.
Show resolved Hide resolved
]
return qn_problem_sets[0]
Loading