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

28 lines
1.4 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: common (v0.31)
description: API reference for qiskit.optimization.applications.ising.common in qiskit v0.31
in_page_toc_min_heading_level: 2
python_api_type: module
python_api_name: qiskit.optimization.applications.ising.common
---
<span id="module-qiskit.optimization.applications.ising.common" />
<span id="qiskit-optimization-applications-ising-common" />
# qiskit.optimization.applications.ising.common
common module
**Functions**
| | |
| -------------------------------------------------- | ----------------------------------------------------------- |
| `get_gset_result`(x) | Get graph solution in Gset format from binary string. |
| `parse_gset_format`(filename) | Read graph in Gset format from file. |
| `random_graph`(n\[, weight\_range, edge\_prob, …]) | Generate random Erdos-Renyi graph. |
| `random_number_list`(n\[, weight\_range, …]) | Generate a set of positive integers within the given range. |
| `read_numbers_from_file`(filename) | Read numbers from a file |
| `sample_most_likely`(state\_vector) | Compute the most likely binary string from state vector. |