Skip to main content
IBM Quantum Platform
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.optimization.applications.ising.partition

Generate Number Partitioning (Partition) instances, and convert them into a Hamiltonian given as a Pauli list.

Functions

get_operator(values)Construct the Hamiltonian for a given Partition instance.
partition_value(x, number_list)Compute the value of a partition.
Was this page helpful?
Report a bug or request content on GitHub.