qiskit-community / qiskit-optimization

Quantum Optimization
https://qiskit-community.github.io/qiskit-optimization/
Apache License 2.0
213 stars 134 forks source link

Add MPS and GZ support in `translators` #583

Open dthuerck opened 5 months ago

dthuerck commented 5 months ago

✅ I have added the tests to cover my changes. ✅ I have updated the documentation accordingly. ✅ I have read the CONTRIBUTING document.

Summary

See issue #582: This PR succeeds #581, having moved lp/mps/gz IO functions into translators.

Details and comments

lp functions in QuadraticProgram have been marked as deprecated. Tests and Tutorials have been updated to use the file_io.

coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 8389542132

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit_optimization/translators/file_io.py 77 79 97.47%
<!-- Total: 93 95 97.89% -->
Totals Coverage Status
Change from base Build 8048858331: 0.06%
Covered Lines: 4580
Relevant Lines: 4920

💛 - Coveralls
dthuerck commented 4 months ago

@woodsp-ibm Thanks for the hints! Should be all done by now, release note is there.

dthuerck commented 2 months ago

Thanks for the extensive comments, @woodsp-ibm ! I added test cases for the deprecated functions and updated the docs accordingly.