Special patterns of constraint to penalty converters#98
Special patterns of constraint to penalty converters#98knamba-jp wants to merge 22 commits intoqiskit-community:mainfrom
Conversation
|
We need a more intuitive name than |
|
We will run black command as suggested. As for the name of the class. KnownConstraintConverter |
|
Thanks. The code format looks good. The naming is a bit difficult. What is the best name for this converter...? Maybe we can leave it later. |
|
FYI, you don't have to implement patterns |
|
|
||
| logger = logging.getLogger(__name__) | ||
|
|
||
| QUBIT_OP_MAXIMIZE_SAMPLE = ( |
There was a problem hiding this comment.
You can simplify it by using PauliSumOp.from_list.
https://qiskit.org/documentation/stubs/qiskit.opflow.primitive_ops.PauliSumOp.html?highlight=paulisumop#qiskit.opflow.primitive_ops.PauliSumOp.from_list
There was a problem hiding this comment.
We discussed and concluded it should be done in another PR.
Added test cases for x+y <=1 and x+y >=1
This reverts commit 6869c2b.
|
Since some errors can't be fixed, we'll open another PR. |
Summary
Resolves #40
TODO
Details and comments
Owned by Amano-san and me
A Tutorial on Formulating and Using QUBO Models introduces examples of the special patterns in page 10 as follows.
