qiskit-community / qiskit-community/mapomatic
two tests are currently failing
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 64
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
FAILED mapomatic/tests/test_best_layout.py::test_best_mapping_ghz_state_full_device_multiple_qregs
FAILED mapomatic/tests/test_best_layout.py::test_best_mapping_ghz_state_deflate_multiple_registers
2 failed, 10 passed, 6042 warnings in 24.49s
I think it is because comparison is too strict. In the first case seed_transpiler guarantees determinism within a given Qiskit build. For the second case, it seems to be a floating point comparison that can be fixed with pytest.approx and accept any layout achieving the optimal cost, rather than pinning exact permutations and 16-digit fidelities.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with mapomatic/tests/test_best_layout.py and the two failing tests: test_best_mapping_ghz_state_full_device_multiple_qregs and test_best_mapping_ghz_state_deflate_multiple_registers. Run the listed pytest tests first, then inspect their exact permutation and fidelity comparisons. Done means both tests accept deterministic layouts within a Qiskit build and floating-point-equivalent optimal results without weakening the intended checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 84/100