QUISA & Réunion University
2026-11-15
https://mroget.github.io/assets/revealjs/QWQubitization/index.html
A square matrix \(P\) such that \(P^2 = P.\)
Remarks:
For a Hermitian projection \(P\), we have \(PP^\dagger P = P^3 = P\).
Let \(P = QQ^\dagger\), it holds that
The reflection according to Hermitian projector \(P\) is defined by \[ R = 2P - I. \]
For any two Hermitian projectors \(\Pi_A\) and \(\Pi_B\), there exists an orthogonal decomposition \(\mathcal{H} = \bigoplus_j S_j\) of the Hilbert space into one-dimensional and two-dimensional subspaces (the Jordan subspaces) that are invariant for both \(\Pi_A\) and \(\Pi_B\). Moreover,
\(\Pi_A + \Pi_B\) is Hermitian, thus it is diagonalizable. Let \(\ket{\psi}\) be an eigenvector of \(\Pi_A + \Pi_B\) associated to eigenvalue \(\lambda\). There are two cases.
Case 1.
If \(\Pi_A\ket{\psi} \in \text{Span}(\ket{\psi})\), then \(\Pi_B\ket{\psi} \in \text{Span}(\ket{\psi})\) because \((\Pi_A + \Pi_B)\ket{\psi} = \lambda\ket{\psi}\). Thus there is a one-dimensional subspace \(S\) invariant under both \(\Pi_A\) and \(\Pi_B\). Furthermore, \(\ket{\psi}\) is an eigenvector of both \(\Pi_A\) and \(\Pi_B\). Since they are Hermitian projectors, their eigenvalues can only be \(0\) or \(1\). Thus, \(\Pi_A\) and \(\Pi_B\) act as either a rank \(0\) projector or identity on \(S\).
Case 2.
If \(\Pi_A\ket{\psi} \notin \text{Span}(\ket{\psi})\), then we define \(\ket{a} = \Pi_A\ket{\psi}\), \(\ket{b} = \Pi_B\ket{\psi}\) and \(S = \text{Span}(\ket{a},\ket{b})\). It holds that
For one subspace \(S_j\) of dimension \(2\), \(\Pi_A\) and \(\Pi_B\) are of rank \(1\). Let \(\ket{a_j} \in S_j\) and \(\ket{b_j} \in S_j\) such that \[ \Pi_A \ket{a_j} = \ket{a_j} \qquad \text{and} \qquad \Pi_B \ket{b_j} = \ket{b_j}. \]
The principal angle \(\theta_j\) of \(S_j\) is such that \[ \cos \theta_j = |\braket{a_j}{b_j}|. \]

\(\ket{a_j}\) and \(\ket{b_j}\) are unit vectors here.
We can consider all subspaces \(S_j = \text{Span}\left(\ket{a_j}, \ket{a_j^\perp}\right)\) independently.
\[ e^{\pm 2i\theta_j}\in \text{Sp}\left[(2\Pi_B-I)(2\Pi_A-I)\right], \; \forall j. \]
We can decompose the Hilbert space into the Jordan’s subspaces \(S_j\). For any non-trivial Jordan subspaces, there is a basis such that \[ (\Pi_A)_{|_{S_j}} = \left(\begin{matrix}1 & 0\\0&0\\\end{matrix}\right), \]
and \[ (\Pi_B)_{|_{S_j}} = \left(\begin{matrix}\cos^2\theta_j & \cos\theta_j\sin\theta_j\\\cos\theta_j\sin\theta_j&\sin^2\theta_j\\\end{matrix}\right). \]
Defining \(R_A = 2\Pi_A-I\) and \(R_B = 2\Pi_B-I\), it follows that \[ (R_A)_{|_{S_j}} = \left(\begin{matrix}1 & 0\\0&-1\\\end{matrix}\right), \] and \[ (R_B)_{|_{S_j}} = \left(\begin{matrix}\cos 2\theta_j & \sin 2\theta_j\\\sin 2\theta_j &-\cos 2\theta_j\\\end{matrix}\right). \]
It holds that \[ U_{|_{S_j}} = (R_B)_{|_{S_j}} (R_A)_{|_{S_j}} = \left(\begin{matrix}\cos 2\theta_j & -\sin 2\theta_j\\\sin 2\theta_j &\cos 2\theta_j\\\end{matrix}\right) \] has eigenvalues \(e^{\pm2i\theta_j}\).
For trivial Jordan’s space of dimension 1, \((\Pi_A)_{|_{S_j}} \in\{0,1\}\) and \((\Pi_B)_{|_{S_j}} \in\{0,1\}\). The principal angle \(\theta_j\) is either \(0\) if \((\Pi_A)_{|_{S_j}} = (\Pi_B)_{|_{S_j}}\) or \(\pi/2\) otherwise. \[U_{|_{S_j}} = (R_B)_{|_{S_j}} (R_A)_{|_{S_j}} = (-1)^{(\Pi_A)_{|_{S_j}} + (\Pi_B)_{|_{S_j}}} = e^{i 2\theta}.\]Let \(A\) and \(B\) be two fully isometric matrices. We define
It holds that the singular values of \(A^\dagger B\) are \(\{\cos \theta_j, \forall j\}\)
A Discrete-time Markov chain is a random walk on the vertices of graph. The probability of jumping to a vertex depends only on the current state, not on the full past history.
It is defined by a transition matrix \(P\) such that
\[ P = \left( \begin{matrix} 1 & 0 & 0\\ 0.5 & 0 & 0.5\\ 0.5 & 0.5 & 0\\ \end{matrix} \right) \]
\[ P \sim \left( \begin{matrix} 1 & 0 & 0\\ 0 & 0.5 & 0\\ 0 & 0 & -0.5\\ \end{matrix} \right) \]
---
config:
flowchart:
wrappingWidth: 300
---
%%| fig-align: center
flowchart LR
A@{ shape: text, label: "$$\\large X_0$$" } --> B@{label: "$$\\large \\mathbb{P}(X_{t+1} = l\\mid X_t=k) = P_{k,l}$$"}
B -- "$$\\large X_{t+1}$$" --> C{$$t=t_f\; ?$$}
C -. yes .-> D@{ shape: text, label: "$$\\large X_{t_f}$$" }
C -. no .-> B
flowchart LR
A@{ shape: text, label: "$$\\large \\ket{\\psi_0}$$" } --> B(" $$\\large\ket{\psi_{t+1}} = W\ket{\psi_t}$$")
B -- "$$\\large \\ket{\\psi_{t+1}}$$" --> C{$$t=t_f\; ?$$}
C -. yes .-> D("Measure position register")
C -. no .-> B
D --> E@{ shape: text, label: "$$\\large X_{t_f}$$" }
Let \(P\) and \(Q\) be two Markov chains on \(n\) vertices. We consider the Hilbert space \(\mathcal{H}_X \otimes \mathcal{H}_Y = \mathbb{C}^{n} \otimes \mathbb{C}^{n}\). We define
\[ W_{P,Q} = (2BB^\dagger - I)(2AA^\dagger - I). \]
\[\scriptsize \left\{\begin{matrix} A\ket{x_1} =& \ket{x_1}\ket{y_1}\\ A\ket{x_2} =& \ket{x_2}\otimes \frac{\ket{y_1}+\ket{y_3}}{\sqrt 2}\\ A\ket{x_3} =& \ket{x_3}\otimes \frac{\ket{y_1}+\ket{y_2}}{\sqrt 2}\\ \end{matrix}\right..\]
\[ W_{P,Q} = (2BB^\dagger - I)(2AA^\dagger - I). \]
If \(\cos \theta_j\) is a singular value of \(D(W_{P,Q}) = A^\dagger B\), then \(e^{\pm 2i \theta_j}\) is an eigenvalue of \(W_{P,Q}\).
\(D(W_{P,Q})_{xy} = \sqrt{P_{xy} Q_{yx}}\).
If \(P\) is doubly stochastic, then \(W_{P,P^T}\) is well defined and \(D(W_{P,P^T}) = P\).
If \(P\) is reversible, then \(D(W_{P,P}) \sim P\).
\(\forall x,y\), \[ P_{xy} = \left\{ \begin{matrix} 1 & \text{if } x=y=1\\ 0 & \text{if } y \neq x = 1\\ 0 & \text{if } y = x \neq 1\\ \frac{1}{n-1} & \text{otherwise}\\ \end{matrix} \right.. \]
\[ D(W_{P,P}) = \sqrt{P_{xy}P_{yx}} = \left\{ \begin{matrix} 1 & \text{if } x=y=1\\ 0 & \text{if } y \neq x = 1\\ 0 & \text{if } x \neq y = 1\\ 0 & \text{if } y = x \neq 1\\ \frac{1}{n-1} & \text{otherwise}\\ \end{matrix} \right.. \]
\[\text{Sp}(D(W_{P,P})) = \left\{0, \frac{n-2}{n-1}, \frac{-1}{n-1}\right\}.\]
\[\text{Sp}(W_{P,P}) = \left\{1, e^{\pm 2i\theta_1}, e^{\pm 2i\theta_2}\right\},\] where \[\theta_1 = \arccos\left(\frac{n-2}{n-1}\right) \underset{n\to \infty}{\sim} \sqrt \frac{2}{n}\] and \[\theta_2 = \arccos\left(\frac{1}{n-1}\right) \underset{n\to \infty}{\sim} \frac{\pi}{2}.\]
We set
import plotly.graph_objects as go
import numpy as np
from math import pi
def basic_state(i,n):
return np.array([[1] if i==k else [0] for k in range(n)])
def SzegedySearch(n, t):
# MC transition
P = (np.ones((n,n))-np.eye(n))/(n-1)
P[0,:] = 0.
P[0,0] = 1
# A
def alpha(x):
return np.kron(basic_state(x, n), sum([np.sqrt(P[x,y])*basic_state(y, n) for y in range(n)]))
A = sum([alpha(x) @ basic_state(x, n).T for x in range(n)])
# B
def beta(y):
return np.kron(sum([np.sqrt(P[y,x])*basic_state(x, n) for x in range(n)]), basic_state(y, n))
B = sum([beta(y) @ basic_state(y, n).T for y in range(n)])
# W
W = (2*B@B.T - np.eye(n**2)) @ (2*A@A.T - np.eye(n**2))
# psi0
psi = sum([1/np.sqrt(n) * np.kron(basic_state(x,n),basic_state(y,n)) for x in range(n) for y in range(n)])/np.sqrt(n)
# proba
Pr = np.kron(basic_state(0,n) @ basic_state(0,n).T, np.eye(n)) # Projection on the position 0
p = [(psi.T @ Pr @ psi)[0,0]]
for i in range(t):
psi = W @ psi
p.append((psi.T @ Pr @ psi)[0,0])
return np.array(p)
# Create figure
fig = go.Figure()
# Add traces, one for each slider step
for step in range(4,100):
p = SzegedySearch(step,30)
theta1 = np.acos((step-2)/(step-1))
HT = pi/(4*theta1)
x = np.linspace(0,len(p),100)
fig.add_trace(
go.Scatter(
visible=False,
line=dict(color="black", width=2),
name=r"$\frac{\pi}{4\theta_1}$",
x=[HT,HT],
y=[0,max(0.5*np.cos(x*theta1*2+pi/2)**2+1/(step-1))]))
fig.add_trace(
go.Scatter(
visible=False,
line=dict(color="black", width=2, dash="dash"),
name="Asymptotical approximation",
x=x,
y=0.5*np.cos(x*theta1*2+pi/2)**2+1/(step-1)))
fig.add_trace(
go.Scatter(
visible=False,
line=dict(color="#00CED1", width=6),
name="n=" + str(step),
x=list(range(len(p))),
y=p))
# Make 10th trace visible
fig.data[3*(10-4)].visible = True
fig.data[3*(10-4)+1].visible = True
fig.data[3*(10-4)+2].visible = True
# Create and add slider
steps = []
for i in range(len(fig.data)//3):
step = dict(
method="update",
label=f"{i+4}", # Text shown at this slider tick
args=[{"visible": [False] * len(fig.data)},
{"title": "n"}], # layout attribute
)
# Toggle i'th trace to "visible"
step["args"][0]["visible"][3*i] = True
step["args"][0]["visible"][3*i+1] = True
step["args"][0]["visible"][3*i+2] = True
steps.append(step)
sliders = [dict(
active=6,
currentvalue={"prefix": "n="},
pad={"t": 50},
steps=steps
)]
fig.update_layout(
sliders=sliders,
xaxis_title="Time step",
yaxis_title="Probability of success"
)
fig.show(renderer="notebook")Number of walk steps for succeeding with probability \(\frac{1}{2}\): \[ O\left(\frac{\pi}{4\theta_1}\right) = O\left(\frac{\pi}{4\sqrt{2}} \sqrt n\right). \]
Number of walk steps for succeeding with probability \(1-\epsilon\): \[ O\left(\frac{\pi}{4\theta_1}\ln \frac{1}{\epsilon}\right) = O\left(\frac{\pi}{4\sqrt{2}} \sqrt n \ln \frac{1}{\epsilon}\right). \]
Quadratically faster than classical search !
Image source: https://www.gluedtrees.com/
Task: Start at the entrance and find the exit.

Best classical complexity exponential in \(n\) but quantum walks solve this in polynomial time !
The problem is traditionally solved using continuous time quantum walks but can also be solved with Szegedy quantum walks. Li et al, 2023
The exponential speedup comes from the problem structure, not the quantum walks.
It is possible to build Szegedy quantum walks that admit a given continuous time quantum walk as its limit. Childs, 2009
Using a distributed implementation of the Szegedy construction, we get an exponential advantage in message complexity. Le Gall et al, 2025
Suppose a quantum operation (U) acts on an eigenstate (|) like this:
\[ U|\psi\rangle = e^{2\pi i\phi}|\psi\rangle \]
The phase \(\phi\), between 0 and 1, is what we want to estimate.
QPE uses a quantum circuit to encode that phase into bits we can measure. For example, if \(\phi = 0.625\), its binary form is \(0.101_2\).
Returns the inverse binary encoding of eigenphase \(\lambda\) with probability \[ |\braket{\lambda}{\psi}|^2. \]
Used in
Link with Quantum walks
We can use the Szegedy quantum walk operator to learn about the underlying Markov chains.
And a lot more …
Initially: We use Szegedy quantum walks because we can study them using the discriminant. The discriminant is a consequence of a given walk.
New use-cases: We use Szegedy quantum walks to encode a unitary with useful eigenphases for other algorithm. The Walk is a consequence of a given discriminant.
Szegedy quantum walks are used as an encoding/implementation tool.
| Pros | Cons |
|---|---|
| Discriminant’s eigenvalues encoded into the eigenphases | Need to build the right Markov chains to encode a given discriminant |
| Implementation is relatively efficient with several known techniques | The number of qubits needed is doubled |
Qubitization goal is to address that.
Let us assume that we have a unitary block encoding \(M\) of the normalized Hermitian \(H\) such that \[ M = \left(\begin{matrix} H & \sqrt{I-H^2}\\ \sqrt{I-H^2} & -H\\ \end{matrix}\right). \]
The goal is to build a unitary \(U\) such that \[ \cos\phi \in \text{Sp}(H) \Leftrightarrow e^{\pm i\phi} \in \text{Sp}(U). \]
| Projectors | Reflections |
|---|---|
| \(\Pi_A = \left(\begin{matrix}I & 0\\0 & 0\\\end{matrix}\right)\) | \(R_A = 2\Pi_A - I = \left(\begin{matrix}I & 0\\0 & -I\\\end{matrix}\right)\) |
| \(\Pi_B = \frac{M+I}{2}\) | \(R_B = 2\Pi_B - I = M\) |
Then it holds that \[ U = R_B R_A = M(2\ket{0}\bra{0}\otimes I -I). \]
We can decompose the Hilbert space into the Jordan’s subspaces \(S_j\). For any non-trivial Jordan subspaces, there is a basis such that \[ (\Pi_A)_{|_{S_j}} = \left(\begin{matrix}1 & 0\\0&0\\\end{matrix}\right), \]
and \[ (\Pi_B)_{|_{S_j}} = \left(\begin{matrix}\cos^2\theta_j & \cos\theta_j\sin\theta_j\\\cos\theta_j\sin\theta_j&\sin^2\theta_j\\\end{matrix}\right). \]
Using the definition of \(R_A\) and \(R_B\), it follows that \[ (R_A)_{|_{S_j}} = \left(\begin{matrix}1 & 0\\0&-1\\\end{matrix}\right), \] and \[ (R_B)_{|_{S_j}} = \left(\begin{matrix}\cos 2\theta_j & \sin 2\theta_j\\\sin 2\theta_j &-\cos 2\theta_j\\\end{matrix}\right). \]
First, note that \(\cos 2\theta_j\) is a eigenvalue of \(H\) since \[ \Pi_A M \Pi_A = \left(\begin{matrix}H & 0\\0 & 0\end{matrix}\right), \] and \[ (\Pi_A M \Pi_A)_{|S_j} = \left(\begin{matrix}\cos 2\theta_j & 0\\0 & 0\end{matrix}\right). \] Furthermore, it holds that \[ U_{|_{S_j}} = U_{|_{S_j}} = (R_B)_{|_{S_j}} (R_A)_{|_{S_j}} = \left(\begin{matrix}\cos 2\theta_j & -\sin 2\theta_j\\\sin 2\theta_j &\cos 2\theta_j\\\end{matrix}\right) \] has eigenvalues \(e^{\pm2i\theta_j}\). By taking \(\phi = 2\theta\), we have the equivalence between \(\cos \phi \in \text{Sp}(H)\) and \(e^{\pm i\phi} \in \text{Sp}(U)\).Let us define the unitaries \(\displaystyle M = \left(\begin{matrix} H & \star\\ \star & \star\\ \end{matrix}\right),\) and \[ U = (2\Pi_B-I)(2\Pi_A-I), \] with \(\Pi_A = \ket{0}\bra{0}\otimes I\) and \(\Pi_B = M\Pi_A M^\dagger\).
It holds that \[ \cos\phi \text{ is a singular value of } H \Leftrightarrow e^{-2i\phi} \in \text{Sp}(U). \]
We can decompose the Hilbert space into the Jordan’s subspaces \(S_j\). For any non-trivial Jordan subspaces, there is a basis such that \[ (\Pi_A)_{|_{S_j}} = \left(\begin{matrix}1 & 0\\0&0\\\end{matrix}\right), \]
and \[ (\Pi_B)_{|_{S_j}} = \left(\begin{matrix}\cos^2\theta_j & \cos\theta_j\sin\theta_j\\\cos\theta_j\sin\theta_j&\sin^2\theta_j\\\end{matrix}\right). \]
Using the definition of \(R_A\) and \(R_B\), it follows that \[ (R_A)_{|_{S_j}} = \left(\begin{matrix}1 & 0\\0&-1\\\end{matrix}\right), \] and \[ (R_B)_{|_{S_j}} = \left(\begin{matrix}\cos 2\theta_j & \sin 2\theta_j\\\sin 2\theta_j &-\cos 2\theta_j\\\end{matrix}\right). \]
First, note that \(\cos \theta_j\) is a singular value of \(H\) since \[ \Pi_A \Pi_B \Pi_A = \left(\begin{matrix}HH^\dagger & 0\\0 & 0\end{matrix}\right), \] and \[ (\Pi_A \Pi_B \Pi_A)_{|S_j} = \left(\begin{matrix}\cos^2\theta_j & 0\\0 & 0\end{matrix}\right). \] Furthermore, it holds that \[ U_{|_{S_j}} = U_{|_{S_j}} = (R_B)_{|_{S_j}} (R_A)_{|_{S_j}} = \left(\begin{matrix}\cos 2\theta_j & \sin 2\theta_j\\-\sin 2\theta_j &\cos 2\theta_j\\\end{matrix}\right) \] has eigenvalues \(e^{\pm 2i\theta_j}\). By taking \(\phi = \theta\), we have the equivalence between \(\cos \phi \text{is a singular value of }\) and \(e^{\pm 2i\phi} \in \text{Sp}(U)\).Szegedy quantum walks have their spectral properties tightly linked with their underlying Markov chains …
… several algorithms started to use them to encode specific eigenphases in quantum computers …
… and Qubitization is the logical next step toward that goal.
Discrete time quantum walks and qubitization - Mathieu Roget