qiskit-documentation/docs/api/qiskit/0.31/qiskit.optimization.applica...

25 lines
1.1 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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. |