hiperwalk.Coined.uniform_state#
- Coined.uniform_state(vertices=None, arcs=None)[source]#
Create a uniform state.
The uniform state is a unit vector with entries that have the same real amplitudes. If both
vertices is None
andarcs is None
, create the uniform superposition of all arcs. Otherwise, create the uniform superposition of all arcs inarcs
and all the arcs with tail invertices
.- Parameters:
- vertices: list of vertices, default=None
If
vertices is not None
, every arc with tail invertices
is added to the uniform superposition.- arcs: list of arcs, default=None
If
arcs is not None
, every arc inarcs
is added to the uniform superposition.
- Returns:
Notes
An example of the uniform state is
\[\ket{d} = \frac{1}{\sqrt{N}} \sum_{i = 0}^{N - 1} \ket{i}\]where \(N\) represents the dimension of the Hilbert space, and \(i\) is a label within the graph. In the continuous-time quantum walk model, \(i\) corresponds to the label of a vertex, while in the coined quantum walk model, \(i\) is the label of an arc.