Maintain Index Consistency When Using simplify=True
in qubo_to_ising
#68
Labels
enhancement
New feature or request
simplify=True
in qubo_to_ising
#68
Description
Currently, using
simplify=True
in thequbo_to_ising
function causes an index mismatch between QUBO and Ising models. We need to address this issue to ensure thatsimplify=True
can be used safely without compromising index consistency.Objectives
Maintain index consistency between QUBO and Ising models when using
simplify=True
in some cases.The test below is the case.
Qamomile/tests/quri_parts/test_quri_transpiler.py
Lines 179 to 194 in 27b4515
Provide a way for users to easily access the correct indices after simplification.
Current Behavior
simplify=True
is used inqubo_to_ising
, the resulting Ising model has different indices from the original QUBO model.var_map
or performing other operations that rely on consistent indexing.Desired Behavior
simplify=True
should not break the index correspondence.Related PR
#67
The text was updated successfully, but these errors were encountered: