# qiskit.algorithms.GroverResult¶

class GroverResult[código fonte]

Grover Result.

__init__()[código fonte]

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

Methods

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

Attributes

 assignment The post-processed value of the most likely bitstring. circuit_results Return the circuit results. iterations All the powers of the Grover operator that have been tried. max_probability Return the maximum sampling probability. oracle_evaluation Whether the classical oracle evaluation of the top measurement was True or False. top_measurement The most frequently measured output as bitstring.
property assignment

The post-processed value of the most likely bitstring.

Tipo de retorno

Any

Retorna

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.

property circuit_results

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

Tipo de retorno

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

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.

Levanta

TypeError – Argument is None

Tipo de retorno

None

property iterations

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

Tipo de retorno

List[int]

Retorna

The powers of the Grover operator tested.

property max_probability

Return the maximum sampling probability.

Tipo de retorno

float

property oracle_evaluation

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

Tipo de retorno

bool

Retorna

The classical oracle evaluation of the top measurement.

property top_measurement

The most frequently measured output as bitstring.

Tipo de retorno

Optional[str]

Retorna

The most frequently measured output state.