You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creates the ``cost_operator`` for the problem instance.
This operator is adjusted to consider qubits that were found to be a part of the problem solution.
Parameters
----------
problem_updated : List
Updates that happened during the QIRO routine. Consits of the updated problem, a list of Qubits which were found to be positively correlated, i.e. part of the problem solution,
and a list Qubits which were found to be negatively correlated, i.e. they contradict solution qubits in accordance with the update rules.
Returns
-------
cost_operator : function
A function receiving a :ref:`QuantumVariable` and a real parameter $\gamma$. This function performs the application of the cost operator.
Qrisp/src/qrisp/algorithms/qaoa/problems/maxSat.py
Lines 98 to 128 in 0f9adb0
Qrisp/src/qrisp/algorithms/qiro/qiroproblems/qiroMaxSat.py
Lines 136 to 165 in 0f9adb0