Skip to content

Remove unused imports in hamiltonians/richardson_gaudin.py#1242

Open
mhucka wants to merge 2 commits intoquantumlib:mainfrom
mhucka:fix-unused-imports-richardson-gaudin-16158235684973498966
Open

Remove unused imports in hamiltonians/richardson_gaudin.py#1242
mhucka wants to merge 2 commits intoquantumlib:mainfrom
mhucka:fix-unused-imports-richardson-gaudin-16158235684973498966

Conversation

@mhucka
Copy link
Copy Markdown
Contributor

@mhucka mhucka commented Mar 30, 2026

This removes unused imports in src/openfermion/hamiltonians/richardson_gaudin.py, specifically PolynomialTensor, get_tensors_from_integrals, chain, and QubitOperator.

mhucka and others added 2 commits March 30, 2026 04:18
…n.py

🎯 **What:** Removed unused imports in `src/openfermion/hamiltonians/richardson_gaudin.py`, specifically `PolynomialTensor`, `get_tensors_from_integrals`, `chain`, and `QubitOperator`.
💡 **Why:** Removing dead code and unused imports improves the maintainability and readability of the codebase by reducing clutter and potential confusion.
✅ **Verification:**
- Ran `pylint` on the file, which now reports a 10/10 score with no unused imports.
- Ran existing unit tests in `src/openfermion/hamiltonians/richardson_gaudin_test.py`, and they all passed.
✨ **Result:** A cleaner and more maintainable `richardson_gaudin.py` file.
@mhucka mhucka marked this pull request as ready for review March 30, 2026 04:36
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes several unused imports from the richardson_gaudin.py module, including chain from itertools, as well as PolynomialTensor, get_tensors_from_integrals, and QubitOperator from the openfermion package. I have no feedback to provide as the changes are straightforward cleanups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant