Utkarsh Dubey DSL
Utkarsh Dubey DSL
Utkarsh Dubey
October 15, 2024
1
• Quantum Random Walk: The superposition of states leads to inter-
ference effects, which can enhance or diminish probabilities of finding the
walker in certain positions, resulting in a fundamentally different distri-
bution than that observed in classical random walks.
2
Figure 2: 1-D symmetric quantum random walk of a single particle.
coin operations used. The spread can also be much larger than that of
classical walks, leading to the potential for faster exploration of the state
space.
% Step 1: Simulate and plot the trajectory for a single random walk
3
single_trajectory = simulateRandomWalk(N);
figure;
plot(0:N, single_trajectory, ’-o’);
title(’1D Random Walk - Single Trajectory’);
xlabel(’Steps’);
ylabel(’Position’);
% Step 2: Simulate random walks for various P values and plot histograms
P_values = [50, 500, 5000, 50000, 500000]; % Different values for P (number of walks)
for p_index = 1:length(P_values)
P = P_values(p_index);
final_positions = zeros(1, P);
4
2.2 simulation results for ten steps
Where the P value refers to the number of times the simulation for ten steps
was run.
5
Where the P value refers to the number of times the simulation for twenty
steps was run.
6
2. Conditional translation (S): The second step is the translation of the
particle in the position space, conditioned on the state of the coin. This
is described by the unitary shift operator S, which acts as follows:
X X
S = | ↑⟩⟨↑ | ⊗ |i + 1⟩⟨i| + | ↓⟩⟨↓ | ⊗ |i − 1⟩⟨i|.
i i
The shift operator moves the particle one step to the right if the coin is
in state | ↑⟩ and one step to the left if the coin is in state | ↓⟩.
Thus, a single step of the quantum random walk can be described by the
operator U = S · (H ⊗ I), where I is the identity operator on the position space
HP . This unitary operator evolves the system over time.
U 1
→ √ (|↑⟩ ⊗ |1⟩ − |↓⟩ ⊗ |−1⟩)
|Φini ⟩ − (1)
2
U 1
→ (|↑⟩ ⊗ |2⟩ − (|↑⟩ − |↓⟩) ⊗ |0⟩ + |↓⟩ ⊗ |−2⟩)
− (2)
2
U 1
→ √ (|↑⟩ ⊗ |3⟩ + |↓⟩ ⊗ |1⟩ + |↑⟩ ⊗ |−1⟩
−
2 2
−2 |↓⟩ ⊗ |−1⟩ − |↓⟩ ⊗ |−3⟩) (3)
So, at T = 3, we get the difference between the classical and the quantum cases.
By a similar analysis we can create the following table which further illustrates
the difference between the quantum and the classical random walk dynamics.
7
3.4 Symmetry and Asymmetry
Unlike the classical case where a Gaussian distribution would emerge, the quan-
tum walk results in an asymmetric distribution that ”drifts” to the left. This
asymmetry arises because the Hadamard coin operator treats the two spin states
| ↑⟩ and | ↓⟩ differently. Specifically, the coin multiplies the phase by −1 for | ↓⟩,
which causes destructive interference for paths to the right, while paths to the
left experience constructive interference.
To obtain a symmetric distribution in a quantum random walk, we can
modify the initial state of the walker. If we start the walk in the state | ↑⟩ ⊗ |0⟩,
the walk will exhibit a drift to the right. On the other hand, starting the walk
in the state | ↓⟩ ⊗ |0⟩ results in a drift to the left. These opposite drifts arise
because the Hadamard coin treats the two spin states differently. To ensure
that these drifts do not interfere with each other, we can start the walk in a
superposition of | ↑⟩ and | ↓⟩, i.e., the symmetric state
1
|Φsym ⟩ = √ (| ↑⟩ + i| ↓⟩) ⊗ |0⟩.
2
In this state, the trajectories originating from | ↑⟩ will remain real, while
those from | ↓⟩ will be purely imaginary. Since the Hadamard operator does
not introduce complex amplitudes, the real and imaginary components will not
interfere with each other, resulting in a symmetric probability distribution. An-
other solution to eliminate the asymmetry of the walk is to use a different
(balanced) coin, namely
1 1 i
Y =√ .
2 i 1
This coin treats | ↑⟩ and | ↓⟩ in the same way and does not bias the walk,
independently of its initial coin state. For generating symmetric distribution,
we will be changing the initial state to
1
|Φsym ⟩ = √ (| ↑⟩ + i| ↓⟩) ⊗ |0⟩.
2
8
M = H * M; % Apply Hadamard coin
M(1,:) = circshift(M(1,:), [0, 1]); % Shift |up> components right
M(2,:) = circshift(M(2,:), [0, -1]); % Shift |down> components left
end
9
3.8 simulation results for twenty steps
where:
10
4.2 2. Coin and Shift Operators
4.2.1 Coin Operator
The coin operator determines the direction of movement for each particle based
on their spin states. For a single particle, a typical coin operator is the Hadamard
operator or a Grover coin, which places the spin state into a superposition of
up and down states.
For a two-particle system, the combined coin operator can be expressed as
the tensor product of the individual coin operators:
C = C1 ⊗ C2
where C1 and C2 are the coin operators acting on particles 1 and 2, respectively.
The application of the coin operator at each time step entangles or superposes
the spins of both particles.
11
1. Pure State (Product State):
In this case, the two particles are in a simple product state, where particle
1 starts at position 0 with spin up, and particle 2 starts at position 0 with
spin down. There is no entanglement between the particles.
2. Entangled State 1:
1 2
ψini = √ |0 ↑⟩1 |0 ↓⟩2 − √ |0 ↓⟩1 |0 ↑⟩2
5 5
This represents a partially entangled state between the two particles. The
amplitudes are unequal, resulting in asymmetric interference patterns in
the evolution of the walk.
3. Entangled State 2:
√
1 2
ψini = √ |0 ↑⟩1 |0 ↓⟩2 − √ |0 ↓⟩1 |0 ↑⟩2
3 3
This is another entangled state with different weighting factors, leading
to distinct interference effects compared to the first entangled state.
4. Fermionic Entangled State:
1
ψini = √ (|0 ↑⟩1 |0 ↓⟩2 − |0 ↓⟩1 |0 ↑⟩2 )
2
In this case, the two particles are indistinguishable fermions. This anti-
symmetric state reflects the Pauli exclusion principle, which forbids two
fermions from occupying the same quantum state.
5. Bosonic Entangled State:
1
ψini = √ (|0 ↑⟩1 |0 ↓⟩2 + |0 ↓⟩1 |0 ↑⟩2 )
2
This represents an entangled state of two indistinguishable bosons. The
state is symmetric, as required by the symmetry properties of bosons,
leading to different interference effects compared to fermions.
% Define the 4D array for the wave function (with spin and position indices)
M = zeros(2, 2, 2*n+1, 2*n+1);
12
% Initialize psi: |0 ↑>_1 |0 ↓>_2
M(1, 2, n+1, n+1) = 1; % 1 means full amplitude in this state
% Compute probabilities
probs = zeros(2*n+1, 2*n+1);
for x1 = 1:2*n+1
for x2 = 1:2*n+1
probs(x1, x2) = sum(sum(abs(M(:, :, x1, x2)).^2));
end
end
probs = probs/sum(probs(:));
% Plotting
x_vals = linspace(-n, n, 2*n+1);
y_vals = linspace(-n, n, 2*n+1);
[X, Y] = meshgrid(x_vals, y_vals);
figure;
surf(X, Y, probs, ’EdgeColor’, ’none’);
colorbar;
xlabel(’Lattice points - Particle 1’);
13
ylabel(’Lattice points - Particle 2’);
zlabel(’Probability’);
title(’Initial state: |0 ↑>_1 |0 ↓>_2’);
H = hadamard(2);
H = H / norm(H);
Coin = kron(H, H);
14
M_new = zeros(size(M));
for x1 = 2:2*n
for x2 = 2:2*n
M_new(1, :, x1+1, x2) = M_new(1, :, x1+1, x2) + M(1, :, x1, x2);
M_new(2, :, x1-1, x2) = M_new(2, :, x1-1, x2) + M(2, :, x1, x2);
M_new(:, 1, x1, x2+1) = M_new(:, 1, x1, x2+1) + M(:, 1, x1, x2);
M_new(:, 2, x1, x2-1) = M_new(:, 2, x1, x2-1) + M(:, 2, x1, x2);
end
end
M = M_new;
end
15
4.6 MATLAB Code and Simulation result for Entangled
state 2
n = 10;
H = hadamard(2);
H = H / norm(H);
Coin = kron(H, H);
M_new = zeros(size(M));
for x1 = 2:2*n
16
for x2 = 2:2*n
M_new(1, :, x1+1, x2) = M_new(1, :, x1+1, x2) + M(1, :, x1, x2);
M_new(2, :, x1-1, x2) = M_new(2, :, x1-1, x2) + M(2, :, x1, x2);
M_new(:, 1, x1, x2+1) = M_new(:, 1, x1, x2+1) + M(:, 1, x1, x2);
M_new(:, 2, x1, x2-1) = M_new(:, 2, x1, x2-1) + M(:, 2, x1, x2);
end
end
M = M_new;
end
17
4.7 MATLAB Code and Simulation result for Fermionic
Entangled State
n = 10; % Number of steps
% Define the 4D array for the wave function (with spin and position indices)
M = zeros(2, 2, 2*n+1, 2*n+1);
18
% Apply shift operator
M_new = zeros(size(M));
for x1 = 2:2*n
for x2 = 2:2*n
M_new(1, :, x1+1, x2) = M_new(1, :, x1+1, x2) + M(1, :, x1, x2); % |up>_1 move r
M_new(2, :, x1-1, x2) = M_new(2, :, x1-1, x2) + M(2, :, x1, x2); % |down>_1 move
M_new(:, 1, x1, x2+1) = M_new(:, 1, x1, x2+1) + M(:, 1, x1, x2); % |up>_2 move r
M_new(:, 2, x1, x2-1) = M_new(:, 2, x1, x2-1) + M(:, 2, x1, x2); % |down>_2 move
end
end
M = M_new; % Update the state
end
% Compute probabilities
probs = zeros(2*n+1, 2*n+1);
for x1 = 1:2*n+1
for x2 = 1:2*n+1
probs(x1, x2) = sum(sum(abs(M(:, :, x1, x2)).^2));
end
end
probs = probs/sum(probs(:));
% Plotting
x_vals = linspace(-n, n, 2*n+1);
y_vals = linspace(-n, n, 2*n+1);
[X, Y] = meshgrid(x_vals, y_vals);
figure;
surf(X, Y, probs, ’EdgeColor’, ’none’);
colorbar;
xlabel(’Lattice points - Particle 1’);
ylabel(’Lattice points - Particle 2’);
zlabel(’Probability’);
title(’Initial state: 1/sqrt(2)(|0 ↑>_1 |0 ↓>_2 - |0 ↓>_1 |0 ↑>_2)’);
19
4.8 MATLAB Code and Simulation result for Bosonic En-
tangled State
n = 10; % Number of steps
% Define the 4D array for the wave function (with spin and position indices)
M = zeros(2, 2, 2*n+1, 2*n+1);
20
% Apply shift operator
M_new = zeros(size(M));
for x1 = 2:2*n
for x2 = 2:2*n
M_new(1, :, x1+1, x2) = M_new(1, :, x1+1, x2) + M(1, :, x1, x2); % |up>_1 move r
M_new(2, :, x1-1, x2) = M_new(2, :, x1-1, x2) + M(2, :, x1, x2); % |down>_1 move
M_new(:, 1, x1, x2+1) = M_new(:, 1, x1, x2+1) + M(:, 1, x1, x2); % |up>_2 move r
M_new(:, 2, x1, x2-1) = M_new(:, 2, x1, x2-1) + M(:, 2, x1, x2); % |down>_2 move
end
end
M = M_new; % Update the state
end
% Compute probabilities
probs = zeros(2*n+1, 2*n+1);
for x1 = 1:2*n+1
for x2 = 1:2*n+1
probs(x1, x2) = sum(sum(abs(M(:, :, x1, x2)).^2));
end
end
probs = probs/sum(probs(:));
% Plotting
x_vals = linspace(-n, n, 2*n+1);
y_vals = linspace(-n, n, 2*n+1);
[X, Y] = meshgrid(x_vals, y_vals);
figure;
surf(X, Y, probs, ’EdgeColor’, ’none’);
colorbar;
xlabel(’Lattice points - Particle 1’);
ylabel(’Lattice points - Particle 2’);
zlabel(’Probability’);
title(’Initial state: 1/sqrt(2)(|0 ↑>_1 |0 ↓>_2 + |0 ↓>_1 |0 ↑>_2)’);
21
5 References
A. Sah, Classical and Quantum Random Walks, 2021
J. Kempe, ”Quantum random walks: An introductory overview,” Contemporary
Physics, vol. 44, no. 4, pp. 307–327, 2003.
22