hiperwalk.QuantumWalk#
- class hiperwalk.QuantumWalk(graph=None, **kwargs)[source]#
Abstract class for Quantum Walks.
Basic methods and attributes used for implementing specific quantum walk models.
- Parameters:
- graph: :class:`hiperwalk.graph.Graph`
Graph on which the quantum walk takes place.
Methods
fit_sin_squared
(x, y)Fit data to the squared sine function.
Retrieve the evolution operator.
Retrieve the marked vertices.
Returns dimension of the Hilbert space.
ket
(label)Creates a state of the computational basis.
max_success_probability
([state, step])Find the maximum success probability.
optimal_runtime
([state, step])Find the optimal running time of a quantum-walk-based search.
probability
(states, vertices)Computes the sum of probabilities for the specified vertices.
probability_distribution
(states)Compute the probability distribution of the given state(s).
set_evolution
(**kwargs)Set the standard evolution operator.
set_marked
([marked])Set the marked vertices.
simulate
([range, state])Simulates the quantum walk.
state
(entries)Generates a state in the Hilbert space.
success_probability
(states)Computes the success probability for the given state(s).
uniform_state
([vertices])Create a uniform state.