Skip to content

Fix missing diagonal term in TransverseFieldIsing.from_qubo bias - #134

Merged
gcattan merged 1 commit into
IBM:mainfrom
gcattan:fix/from-qubo-h-diagonal-term
Sep 5, 2026
Merged

Fix missing diagonal term in TransverseFieldIsing.from_qubo bias#134
gcattan merged 1 commit into
IBM:mainfrom
gcattan:fix/from-qubo-h-diagonal-term

Conversation

@gcattan

@gcattan gcattan commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

The QUBO-to-Ising substitution x=(1+s)/2 requires the diagonal of the symmetrized QUBO matrix to appear in the linear bias h_q, not just in the row sums. Without it, h_q was systematically wrong and the solver would converge confidently to incorrect optima. Verified the fix by brute-force affine-consistency checks and by confirming the solver now recovers the true optimum end-to-end.

The QUBO-to-Ising substitution x=(1+s)/2 requires the diagonal of the
symmetrized QUBO matrix to appear in the linear bias h_q, not just in
the row sums. Without it, h_q was systematically wrong and the solver
would converge confidently to incorrect optima. Verified the fix by
brute-force affine-consistency checks and by confirming the solver now
recovers the true optimum end-to-end.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@gcattan
gcattan merged commit 5315521 into IBM:main Sep 5, 2026
8 checks passed
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