OptimizationApplication#
- class OptimizationApplication[ソース]#
ベースクラス:
ABC
An abstract class for optimization applications.
Methods
- abstract interpret(result)[ソース]#
Convert the calculation result of the problem (
OptimizationResult
or a binary array using np.ndarray) to the answer of the problem in an easy-to-understand format.- パラメータ:
result (OptimizationResult | ndarray) – The calculated result of the problem
- static sample_most_likely(state_vector)[ソース]#
Compute the most likely binary string from state vector.
- パラメータ:
state_vector (QuasiDistribution | Statevector | ndarray | Dict) – state vector or counts or quasi-probabilities.
- 戻り値:
binary string as numpy.ndarray of ints.
- 例外:
ValueError – if state_vector is not QuasiDistribution, Statevector, np.ndarray, or dict.
- 戻り値の型: