25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
---
|
||
title: graph_partition (v0.31)
|
||
description: API reference for qiskit.optimization.applications.ising.graph_partition in qiskit v0.31
|
||
in_page_toc_min_heading_level: 2
|
||
python_api_type: module
|
||
python_api_name: qiskit.optimization.applications.ising.graph_partition
|
||
---
|
||
|
||
<span id="module-qiskit.optimization.applications.ising.graph_partition" />
|
||
|
||
<span id="qiskit-optimization-applications-ising-graph-partition" />
|
||
|
||
# qiskit.optimization.applications.ising.graph\_partition
|
||
|
||
Convert graph partitioning instances into Pauli list Deal with Gset format. See [https://web.stanford.edu/\~yyye/yyye/Gset/](https://web.stanford.edu/~yyye/yyye/Gset/)
|
||
|
||
**Functions**
|
||
|
||
| | |
|
||
| ------------------------------ | ----------------------------------------------- |
|
||
| `get_graph_solution`(x) | Get graph solution from binary string. |
|
||
| `get_operator`(weight\_matrix) | Generate Hamiltonian for the graph partitioning |
|
||
| `objective_value`(x, w) | Compute the value of a cut. |
|
||
|