Maxcut¶

class
Maxcut
(graph)[source]¶ Bases:
qiskit_optimization.applications.graph_optimization_application.GraphOptimizationApplication
Optimization application for the “maxcut” [1] problem based on a NetworkX graph.
References
[1]: “Maximum cut”, https://en.wikipedia.org/wiki/Maximum_cut
 Parameters
graph (
Union
[Graph
,ndarray
,List
]) – A graph representing a problem. It can be specified directly as aGraph (NetworkX) –
as an array or list if format suitable to build out a NetworkX graph. (or) –
Attributes
Methods
Get graph solution in Gset format from binary string.
interpret
(result)Interpret a result as two lists of node indices
parse_gset_format
(filename)Read graph in Gset format from file.
Convert a Maxcut problem instance into a
QuadraticProgram