hiperwalk.QuantumWalk.max_success_probability#

QuantumWalk.max_success_probability(state=None, step=1)[source]#

Find the maximum success probability.

This method returns the success probability that corresponds to the optimal running time.

Parameters:
statenumpy.ndarray, default=None

The state initial state for the simulation. If None, uses the uniform state.

step

Step of the simulation range. See range argument in simulate() for details.

Returns:
float

The maximum success probability.