View on GitHub
Open this notebook in GitHub to run it yourself
1D Quantum Walk
In a one-dimensional discrete-time quantum walk, the position space is the integer lattice , and the coin space is a two-dimensional Hilbert space. The state is written as Using a coin operator and a shift operator , one step of the time evolution is defined by A typical example of a coin is the Hadamard coin: The shift operator moves the walker left or right depending on the coin state: As a result, the quantum walk spreads ballistically due to interference, producing a probability distribution very different from the Gaussian diffusion of classical random walks.Output:
Output:

2 dimentional quantum walk
In a discrete-time quantum walk on a two-dimensional lattice, the position space is , and a four-dimensional coin space is used to represent movement directions. The state is written as The coin operator is a unitary matrix. A commonly used example is the Grover coin: The shift operator moves the walker according to the coin state: The time evolution is given, as in the 1D case, by Two-dimensional quantum walks exhibit richer interference patterns, and it is known that strong localization can occur, particularly when using the Grover coin.Output:
