Skip to main contentIBM Quantum Documentation
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.
Important

IBM Quantum Platform is moving and this version will be sunset on July 1. To get started on the new platform, read the migration guide.

qiskit.algorithms.GroverResult

class GroverResult

GitHub

Grover Result.

__init__

__init__()

Initialize self. See help(type(self)) for accurate signature.


Methods

__init__()Initialize self.
combine(result)Any property from the argument that exists in the receiver is updated.

Attributes

assignmentThe post-processed value of the most likely bitstring.
circuit_resultsReturn the circuit results.
iterationsAll the powers of the Grover operator that have been tried.
max_probabilityReturn the maximum sampling probability.
oracle_evaluationWhether the classical oracle evaluation of the top measurement was True or False.
top_measurementThe most frequently measured output as bitstring.

assignment

The post-processed value of the most likely bitstring.

Return type

Any

Returns

The output of the post_processing function of the respective AmplificationProblem, where the input is the top_measurement. The type is the same as the return type of the post-processing function.

circuit_results

Return the circuit results. Can be a statevector or counts dictionary.

Return type

Union[List[ndarray], List[Dict[str, int]], None]

combine

combine(result)

Any property from the argument that exists in the receiver is updated. :type result: AlgorithmResult :param result: Argument result with properties to be set.

Raises

TypeError – Argument is None

Return type

None

iterations

All the powers of the Grover operator that have been tried.

Return type

List[int]

Returns

The powers of the Grover operator tested.

max_probability

Return the maximum sampling probability.

Return type

float

oracle_evaluation

Whether the classical oracle evaluation of the top measurement was True or False.

Return type

bool

Returns

The classical oracle evaluation of the top measurement.

top_measurement

The most frequently measured output as bitstring.

Return type

Optional[str]

Returns

The most frequently measured output state.

Was this page helpful?
Report a bug or request content on GitHub.