You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/basic_tutorials/quantum_primitives/linear_combination_of_unitaries/linear_combination_of_unitaries.ipynb
Copy file name to clipboardExpand all lines: tutorials/basic_tutorials/quantum_primitives/linear_combination_of_unitaries/linear_combination_of_unitaries.qmod
+28-2Lines changed: 28 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,34 @@
1
+
// Linear Combination of Unitaries (LCU)
2
+
3
+
// The Linear Combination of Unitaries (LCU) technique implements a block encoding
4
+
// proportional to a weighted sum of unitaries,
5
+
//
6
+
// A = Σ_j α_j U_j ,
7
+
//
8
+
// by coherently selecting between the unitaries U_j using an ancilla variable.
9
+
// The ancilla is prepared in a superposition whose amplitudes encode the
10
+
// coefficients α_j, and a controlled SELECT operation applies U_j conditioned
11
+
// on the ancilla state.
12
+
// By uncomputing the ancilla and post-selecting the zero state |0…0⟩, the action of the
13
+
// circuit on the data variable becomes proportional to the desired linear
14
+
// combination. LCU is a central primitive in quantum algorithms for Hamiltonian
15
+
// simulation, quantum signal processing, and quantum linear algebra.
16
+
17
+
// In this concrete example, the controller encodes three unitaries acting on
18
+
// the state psi: the identity, the quantum Fourier transform (QFT), and the
19
+
// inverse QFT. The resulting transformation is proportional to
0 commit comments