Discrete Fourier transform and FFT

[26/85%]
Show
LaTeX

Suppose nn is a positive integer. For this exercise, we adopt the notation that a typical element zz of Cn\mathbb {C}^{n} is denoted by z=(z0,z1,…,zn−1)z = (z_{0}, z_{1}, \ldots , z_{n-1}). Define linear functionals ω0,ω1,…,ωn−1\omega_{0}, \omega_{1}, \ldots , \omega_{n-1} on Cn\mathbb {C}^{n} by

ωj(z0,z1,…,zn−1)=1n∑m=0n−1zme−2πijm/n. \omega _{j}(z_{0}, z_{1}, \ldots , z_{n-1}) = \frac{1}{\sqrt{n}} \sum _{m = 0}^{n-1} z_{m} e^{-2 \pi i j m / n} .

The discrete Fourier transform is the operator F:Cn→Cn\mathcal{F} : \mathbb {C}^{n} \rightarrow \mathbb {C}^{n} defined by

Fz=(ω0(z),ω1(z),…,ωn−1(z)). \mathcal{F} z = (\omega _{0}(z), \omega _{1}(z), \ldots , \omega _{n-1}(z)) .
?
(a)

Show that F\mathcal{F} is a unitary operator on Cn\mathbb {C}^{n}.

(b)

Show that if (z0,…,zn−1)∈Cn(z_{0}, \ldots , z_{n-1}) \in \mathbb {C}^{n} and znz_{n} is defined to equal z0z_{0}, then

F−1(z0,z1,…,zn−1)=F(zn,zn−1,…,z1). \mathcal{F}^{-1}(z_{0}, z_{1}, \ldots , z_{n-1}) = \mathcal{F}(z_{n}, z_{n-1}, \ldots , z_{1}) .
(c)

Show that F4=I\mathcal{F}^{4} = I.

Remark.
?

The discrete Fourier transform has many important applications in data analysis. The usual Fourier transform involves expressions of the form ∫−∞∞f(x)e−2πitxdx\int_{-\infty }^{\infty } f(x) e^{-2 \pi i t x} d x for complex-valued integrable functions ff defined on R\mathbf{R}.

Compute ∣A363∣\left|\mathbf{A}_{363}\right| for ω=e2\pii/3\omega = e^{2\pii / 3}. A363=[1111ωω21ω2ω]\mathbf{A}_{363} = \left[\begin{smallmatrix} 1 & 1 & 1 \\ 1 & \omega & \omega^{2} \\ 1 & \omega^{2} & \omega \end{smallmatrix}\right].

?

Evaluate the following convolutions (using the convolution ⊙\odot of two vectors, as defined in this section: for a=(α0,…,αn−1)Ta = (\alpha_{0},\ldots ,\alpha_{n-1})^{T}, b=(β0,…,βn−1)Tb=(\beta_{0},\ldots ,\beta_{n-1})^{T}, the vector a⊙ba \odot b of size 2n2n whose kkth entry is ∑j=0kαjβk−j\sum_{j=0}^{k} \alpha_{j}\beta_{k-j}, padding αi,βi=0\alpha_{i},\beta_{i}=0 for i≥ni \geq n).

?
(a)

(123)⊙(456)\begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} \odot \begin{pmatrix} 4 \\ 5 \\ 6 \end{pmatrix}.

(b)

(−101)⊙(10−1)\begin{pmatrix} -1 \\ 0 \\ 1 \end{pmatrix} \odot \begin{pmatrix} 1 \\ 0 \\ -1 \end{pmatrix}.

(c)

(111)⊙(α0α1α2)\begin{pmatrix} 1 \\ 1 \\ 1 \end{pmatrix} \odot \begin{pmatrix} \alpha_{0} \\ \alpha_{1} \\ \alpha_{2} \end{pmatrix}.

?
(a)

Evaluate the discrete Fourier transform F4xF_{4}x of x=(1−i−1i)x = \begin{pmatrix} 1 \\ -i \\ -1 \\ i \end{pmatrix}.

(b)

Evaluate the inverse transform F4−1xF_{4}^{-1}x of x=(1i−1−i)x = \begin{pmatrix} 1 \\ i \\ -1 \\ -i \end{pmatrix}.

Remark.
?

Example 5.8.1 gives F4=(11111−i−1i1−11−11i−1−i)F_{4} = \begin{pmatrix} 1 & 1 & 1 & 1 \\ 1 & -i & -1 & i \\ 1 & -1 & 1 & -1 \\ 1 & i & -1 & -i \end{pmatrix} and F4−1=14F4F_{4}^{-1} = \frac{1}{4}F_{4} (using F4‾=F4−1⋅4\overline{F_{4}} = F_{4}^{-1}\cdot 4, i.e.F4−1F_{4}^{-1} has the same entries as 14F4‾\frac{1}{4}\overline{F_{4}}, which for this real-symmetric-conjugate case coincides with 14F4\frac{1}{4}F_{4} up to conjugation of each entry).

Verify directly that F4=(F2D2F2F2−D2F2)P4F_{4} = \begin{pmatrix} F_{2} & D_{2}F_{2} \\ F_{2} & -D_{2}F_{2} \end{pmatrix} P_{4}, where F4,P4,D2F_{4}, P_{4}, D_{2} are as defined in the Fourier-matrix decomposition (5.8.15): for n=2rn=2^{r}, Fn=(Fn/2Dn/2Fn/2Fn/2−Dn/2Fn/2)PnF_{n} = \begin{pmatrix} F_{n/2} & D_{n/2}F_{n/2} \\ F_{n/2} & -D_{n/2}F_{n/2} \end{pmatrix}P_{n}, where Dn/2=diag⁡(1,ξ,ξ2,…,ξn/2−1)D_{n/2} = \operatorname {diag}(1,\xi ,\xi^{2},\ldots ,\xi^{n/2-1}) (ξ\xi the primitive nnth root of unity used throughout this section) and PnT=[e0  e2  e4  ⋯  en−2∣e1  e3  e5  ⋯  en−1]P_{n}^{T} = \left[e_{0}\; e_{2}\; e_{4}\; \cdots \; e_{n-2} \mid e_{1}\; e_{3}\; e_{5}\; \cdots \; e_{n-1}\right] is the even-odd permutation matrix.

?

Use the following vectors to perform the indicated computations: a=(α0α1)a = \begin{pmatrix} \alpha_{0} \\ \alpha_{1} \end{pmatrix}, b=(β0β1)b = \begin{pmatrix} \beta_{0} \\ \beta_{1} \end{pmatrix}, a^=(α0α100)\hat{a} = \begin{pmatrix} \alpha_{0} \\ \alpha_{1} \\ 0 \\ 0 \end{pmatrix}, b^=(β0β100)\hat{b} = \begin{pmatrix} \beta_{0} \\ \beta_{1} \\ 0 \\ 0 \end{pmatrix}.

?
(a)

Compute a⊙ba \odot b, F4(a⊙b)F_{4}(a \odot b), and (F4a^)×(F4b^)(F_{4}\hat{a}) \times (F_{4}\hat{b}) (where ×\times is the entrywise product).

(b)

By using F4−1F_{4}^{-1} as given in Example 5.8.1, compute F4−1[(F4a^)×(F4b^)]F_{4}^{-1}\left[(F_{4}\hat{a}) \times (F_{4}\hat{b})\right]. Compare this with the results guaranteed by the convolution theorem.

For p(x)=2x−3p(x) = 2x-3 and q(x)=3x−4q(x) = 3x-4, compute the product p(x)q(x)p(x)q(x) by using the convolution theorem.

?
Remark.
?

The convolution theorem: for a,b∈Cna,b \in \mathbb {C}^{n} with padded forms a^,b^∈C2n\hat{a},\hat{b} \in \mathbb {C}^{2n}, and F=F2nF = F_{2n}, F(a⊙b)=(Fa^)×(Fb^)F(a\odot b) = (F\hat{a}) \times (F\hat{b}), so a⊙b=F−1[(Fa^)×(Fb^)]a \odot b = F^{-1}\left[(F\hat{a})\times (F\hat{b})\right]. By Example 5.8.4, if p(x)=∑αkxkp(x)=\sum \alpha_{k}x^{k} and q(x)=∑βkxkq(x) = \sum \beta_{k}x^{k} (coefficients padded into a,b∈Cna,b \in \mathbb {C}^{n}), then the coefficient vector of p(x)q(x)p(x)q(x) is exactly a⊙ba \odot b.

Use convolutions to form the following products.

?
(a)

4310×211043_{10} \times 21_{10}.

(b)

1238×6018123_{8} \times 601_{8}.

(c)

10102×110121010_{2} \times 1101_{2}.

Remark.
?

Interpreting each number's base-bb digit string as the coefficient vector of a polynomial evaluated at x=bx=b reduces multiplication to convolution (Example 5.8.4), followed by carrying (substituting k×bj=bj+1+(k−b)×bjk \times b^{j} = b^{j+1} + (k-b)\times b^{j} wherever a digit meets or exceeds the base bb).

Let aa and bb be n×1n \times 1 vectors, where nn is a power of 2.

?
(a)

Show that the number of multiplications required to form a⊙ba \odot b by using the definition of convolution is n2n^{2}.

(b)

Show that the number of multiplications required to form a⊙ba \odot b by using the FFT in conjunction with the convolution theorem is 3nlog⁡2n+7n3n\log_{2}n + 7n.

Remark.
?

For part (a): 1+2+⋯+k=k(k+1)/21+2+\cdots +k = k(k+1)/2. For part (b): compare a plotted graph of 3nlog⁡2n3n\log_{2}n (dropping the less significant 7n7n term) against n2n^{2} to see the size of the FFT's advantage for large nn.

A waveform given by a finite sum x(τ)=∑k(αkcos⁡2πfkτ+βksin⁡2πfkτ)x(\tau ) = \sum_{k} (\alpha_{k}\cos 2\pi f_{k}\tau + \beta_{k}\sin 2\pi f_{k}\tau ), in which the fkf_{k}'s are integers and max⁡{fk}≤3\max \left\{ f_{k}\right\} \leq 3, is sampled at eight equally spaced points between τ=0\tau =0 and τ=1\tau =1. Let x=(x(0/8)x(1/8)x(2/8)x(3/8)x(4/8)x(5/8)x(6/8)x(7/8))Tx = \begin{pmatrix} x(0/8) & x(1/8) & x(2/8) & x(3/8) & x(4/8) & x(5/8) & x(6/8) & x(7/8) \end{pmatrix}^{T}, and suppose that

y=14F8x=(0−5i1−3i4041+3i5i). y = \frac{1}{4}F_{8}x = \begin{pmatrix} 0 \\ -5i \\ 1-3i \\ 4 \\ 0 \\ 4 \\ 1+3i \\ 5i \end{pmatrix}.

What is the equation of the waveform?

?
Remark.
?

Equations (5.8.7)-(5.8.8) show that y=2nFnx=∑kαk(efk+en−fk)+i∑kβk(−efk+en−fk)y = \frac{2}{n}F_{n}x = \sum_{k} \alpha_{k}(e_{f_{k}}+e_{n-f_{k}}) + i\sum_{k} \beta_{k}(-e_{f_{k}}+e_{n-f_{k}}), so each pair of pulses at index fkf_{k} and n−fkn-f_{k} in yy reveals αk\alpha_{k} (from the sum of the two entries) and βk\beta_{k} (from their difference, divided by ii).

Prove that a⊙b=b⊙aa \odot b = b \odot a for all a,b∈Cna, b \in \mathbb {C}^{n} — i.e., convolution is a commutative operation.

?

For p(x)=∑k=0n−1αkxkp(x) = \sum_{k=0}^{n-1} \alpha_{k}x^{k} and the nnth roots of unity ξk\xi^{k}, let a=(α0α1⋯αn−1)Ta = \begin{pmatrix} \alpha_{0} & \alpha_{1} & \cdots & \alpha_{n-1} \end{pmatrix}^{T} and p=(p(1)p(ξ)⋯p(ξn−1))Tp = \begin{pmatrix} p(1) & p(\xi ) & \cdots & p(\xi^{n-1}) \end{pmatrix}^{T}. Explain why Fna=pF_{n}a = p and a=Fn−1pa = F_{n}^{-1}p.

?

For two polynomials p(x)=∑k=0n−1αkxkp(x) = \sum_{k=0}^{n-1}\alpha_{k}x^{k} and q(x)=∑k=0n−1βkxkq(x) = \sum_{k=0}^{n-1}\beta_{k}x^{k}, let p=(p(1)p(ξ)⋯p(ξ2n−1))Tp = \begin{pmatrix} p(1) & p(\xi ) & \cdots & p(\xi^{2n-1}) \end{pmatrix}^{T} and q=(q(1)q(ξ)⋯q(ξ2n−1))Tq = \begin{pmatrix} q(1) & q(\xi ) & \cdots & q(\xi^{2n-1}) \end{pmatrix}^{T}, where 1,ξ,ξ2,…,ξ2n−11,\xi ,\xi^{2},\ldots ,\xi^{2n-1} are now the 2n2nth roots of unity. Explain why the coefficients in the product p(x)q(x)=γ0+γ1x+⋯+γ2n−2x2n−2p(x)q(x) = \gamma_{0}+\gamma_{1}x+\cdots +\gamma_{2n-2}x^{2n-2} must be given by

(γ0γ1⋮)=F2n−1(p(1)q(1)p(ξ)q(ξ)⋮). \begin{pmatrix} \gamma _{0} \\ \gamma _{1} \\ \vdots \end{pmatrix} = F_{2n}^{-1}\begin{pmatrix} p(1)q(1) \\ p(\xi )q(\xi ) \\ \vdots \end{pmatrix}.
?

A circulant matrix is defined to be a square matrix that has the form C=(c0cn−1cn−2⋯c1c1c0cn−1⋯c2c2c1c0⋯c3⋮⋮⋮⋮cn−1cn−2cn−3⋯c0)n×nC = \begin{pmatrix} c_{0} & c_{n-1} & c_{n-2} & \cdots & c_{1} \\ c_{1} & c_{0} & c_{n-1} & \cdots & c_{2} \\ c_{2} & c_{1} & c_{0} & \cdots & c_{3} \\ \vdots & \vdots & \vdots & & \vdots \\ c_{n-1} & c_{n-2} & c_{n-3} & \cdots & c_{0} \end{pmatrix}_{n\times n} — i.e., the entries in each column are the same as the previous column, but shifted one position downward and wrapped around at the top; the (j,k)(j,k)-entry is cjk=cj−k(modn)c_{jk} = c_{j-k \pmod{n}}.

?
(a)

If QQ is the circulant matrix defined by Q=(00⋯0110⋯0001⋯00⋮⋮⋱⋮⋮00⋯10)n×nQ = \begin{pmatrix} 0 & 0 & \cdots & 0 & 1 \\ 1 & 0 & \cdots & 0 & 0 \\ 0 & 1 & \cdots & 0 & 0 \\ \vdots & \vdots & \ddots & \vdots & \vdots \\ 0 & 0 & \cdots & 1 & 0 \end{pmatrix}_{n\times n}, and if p(x)=c0+c1x+⋯+cn−1xn−1p(x) = c_{0}+c_{1}x+\cdots +c_{n-1}x^{n-1}, verify that C=p(Q)=c0I+c1Q+⋯+cn−1Qn−1C = p(Q) = c_{0}I + c_{1}Q + \cdots + c_{n-1}Q^{n-1}.

(b)

Explain why the Fourier matrix of order nn diagonalizes QQ in the sense that FQF−1=D=diag⁡(1,ξ,…,ξn−1)FQF^{-1} = D = \operatorname {diag}(1,\xi ,\ldots ,\xi^{n-1}), where the ξk\xi^{k}'s are the nnth roots of unity.

(c)

Prove that the Fourier matrix of order nn diagonalizes every n×nn \times n circulant in the sense that FCF−1=diag⁡(p(1),p(ξ),…,p(ξn−1))FCF^{-1} = \operatorname {diag}(p(1),p(\xi ),\ldots ,p(\xi^{n-1})), where p(x)=c0+c1x+⋯+cn−1xn−1p(x) = c_{0}+c_{1}x+\cdots +c_{n-1}x^{n-1}.

(d)

If C1C_{1} and C2C_{2} are any pair of n×nn\times n circulants, explain why C1C2=C2C1C_{1}C_{2} = C_{2}C_{1} — i.e., all circulants commute with each other.

For a nonsingular circulant Cn×nC_{n\times n}, explain how to use the FFT algorithm to efficiently perform the following operations.

?
(a)

Solve a system Cx=bCx = b.

(b)

Compute C−1C^{-1}.

(c)

Multiply two circulants C1C2C_{1}C_{2}.

For the vectors a=(α0α1⋮αn−1)a = \begin{pmatrix} \alpha_{0} \\ \alpha_{1} \\ \vdots \\ \alpha_{n-1} \end{pmatrix}, b=(β0β1⋮βn−1)b = \begin{pmatrix} \beta_{0} \\ \beta_{1} \\ \vdots \\ \beta_{n-1} \end{pmatrix}, a^=(α0⋮αn−10⋮0)2n×1\hat{a} = \begin{pmatrix} \alpha_{0} \\ \vdots \\ \alpha_{n-1} \\ 0 \\ \vdots \\ 0 \end{pmatrix}_{2n \times 1}, and b^=(β0⋮βn−10⋮0)2n×1\hat{b} = \begin{pmatrix} \beta_{0} \\ \vdots \\ \beta_{n-1} \\ 0 \\ \vdots \\ 0 \end{pmatrix}_{2n \times 1}, let CC be the 2n×2n2n\times 2n circulant matrix (Exercise 5.8.12) whose first column is a^\hat{a}.

?
(a)

Show that the convolution operation can be described as a matrix-vector product by demonstrating that a⊙b=Cb^a \odot b = C\hat{b}.

(b)

Use this relationship to give an alternate proof of the convolution theorem.

The Kronecker product of two matrices Am×nA_{m\times n} and Bp×qB_{p\times q} is the mp×nqmp \times nq matrix A⊗B=(a11Ba12B⋯a1nBa21Ba22B⋯a2nB⋮⋮⋮am1Bam2B⋯amnB)A \otimes B = \begin{pmatrix} a_{11}B & a_{12}B & \cdots & a_{1n}B \\ a_{21}B & a_{22}B & \cdots & a_{2n}B \\ \vdots & \vdots & & \vdots \\ a_{m1}B & a_{m2}B & \cdots & a_{mn}B \end{pmatrix}, satisfying A⊗(B⊗C)=(A⊗B)⊗CA\otimes (B\otimes C) = (A\otimes B)\otimes C and (A⊗B)(C⊗D)=AC⊗BD(A\otimes B)(C\otimes D) = AC\otimes BD (when ACAC and BDBD exist).

?
(a)

If n=2rn=2^{r}, and if PnP_{n} is the even-odd permutation matrix from the Fourier-matrix decomposition (5.8.15), explain why Rn=(I2r−1⊗P21)(I2r−2⊗P22)⋯(I21⊗P2r−1)(I20⊗P2r)R_{n} = (I_{2^{r-1}}\otimes P_{2^{1}})(I_{2^{r-2}}\otimes P_{2^{2}})\cdots (I_{2^{1}}\otimes P_{2^{r-1}})(I_{2^{0}}\otimes P_{2^{r}}) is the permutation matrix associated with the bit-reversing (perfect shuffle) permutation.

(b)

Suppose n=2rn=2^{r}, and set Bn=(In/2Dn/2In/2−Dn/2)B_{n} = \begin{pmatrix} I_{n/2} & D_{n/2} \\ I_{n/2} & -D_{n/2} \end{pmatrix}. According to (5.8.15), the Fourier matrix can be written as Fn=Bn(I2⊗Fn/2)PnF_{n} = B_{n}(I_{2}\otimes F_{n/2})P_{n}. Prove that FnF_{n} can be factored as Fn=LnRnF_{n} = L_{n}R_{n}, where Ln=(I20⊗B2r)(I21⊗B2r−1)⋯(I2r−2⊗B22)(I2r−1⊗B21)L_{n} = (I_{2^{0}}\otimes B_{2^{r}})(I_{2^{1}}\otimes B_{2^{r-1}})\cdots (I_{2^{r-2}}\otimes B_{2^{2}})(I_{2^{r-1}}\otimes B_{2^{1}}), and RnR_{n} is the bit-reversing permutation of part (a).

Remark.
?

This says Fnx=LnRnxF_{n}x = L_{n}R_{n}x: the discrete Fourier transform of xx is obtained by first performing the bit-reversing permutation, then applying rr successive terms of LnL_{n} — this is the FFT algorithm in factored form.

For p(x)=α0+α1x+α2x2+⋯+αn−1xn−1p(x) = \alpha_{0}+\alpha_{1}x+\alpha_{2}x^{2}+\cdots +\alpha_{n-1}x^{n-1}, prove that

1n∑k=0n−1∣p(ξk)∣2=∣α0∣2+∣α1∣2+⋯+∣αn−1∣2, \frac{1}{n}\sum _{k=0}^{n-1} \left|p(\xi ^{k})\right|^{2} = \left|\alpha _{0}\right|^{2}+\left|\alpha _{1}\right|^{2}+\cdots +\left|\alpha _{n-1}\right|^{2},

where 1,ξ,ξ2,…,ξn−11,\xi ,\xi^{2},\ldots ,\xi^{n-1} are the nnth roots of unity.

?

Consider a waveform given by a finite sum x(τ)=∑k(αkcos⁡2πfkτ+βksin⁡2πfkτ)x(\tau ) = \sum_{k}(\alpha_{k}\cos 2\pi f_{k}\tau + \beta_{k}\sin 2\pi f_{k}\tau ), in which the fkf_{k}'s are distinct integers, and let x=∑k(αkcos⁡2πfkt+βksin⁡2πfkt)x = \sum_{k}(\alpha_{k}\cos 2\pi f_{k}t + \beta_{k}\sin 2\pi f_{k}t) be the vector containing the values of x(τ)x(\tau ) at n>2max⁡{fk}n > 2\max \left\{ f_{k}\right\} equally spaced points between τ=0\tau =0 and τ=1\tau =1 (Example 5.8.3). Use the discrete Fourier transform to prove that

∥x∥22=n2∑k(αk2+βk2). \left\| x\right\| _{2}^{2} = \frac{n}{2}\sum _{k}\left(\alpha _{k}^{2}+\beta _{k}^{2}\right).
?
Remark.
?

Equation (5.8.7): 2nFnx=∑kαk(efk+en−fk)+i∑kβk(−efk+en−fk)\frac{2}{n}F_{n}x = \sum_{k} \alpha_{k}(e_{f_{k}}+e_{n-f_{k}}) + i\sum_{k}\beta_{k}(-e_{f_{k}}+e_{n-f_{k}}).

Let η\eta be an arbitrary scalar, and let c=(1ηη2⋮η2n−1)c = \begin{pmatrix} 1 \\ \eta \\ \eta^{2} \\ \vdots \\ \eta^{2n-1} \end{pmatrix} and a=(α0α1⋮αn−1)a = \begin{pmatrix} \alpha_{0} \\ \alpha_{1} \\ \vdots \\ \alpha_{n-1} \end{pmatrix}. Prove that cT(a⊙a)=(cTa^)2c^{T}(a \odot a) = \left(c^{T}\hat{a}\right)^{2}.

?
Remark.
?

Example 5.8.4: if p(x)=∑k=0n−1αkxkp(x) = \sum_{k=0}^{n-1} \alpha_{k}x^{k}, then p(x)2=∑k=02n−2[a⊙a]kxkp(x)^{2} = \sum_{k=0}^{2n-2} \left[a\odot a\right]_{k} x^{k}.

Apply the FFT algorithm to the vector x8=(x0x1⋮x7)x_{8} = \begin{pmatrix} x_{0} \\ x_{1} \\ \vdots \\ x_{7} \end{pmatrix}, and then verify that your answer agrees with the result obtained by computing F8x8F_{8}x_{8} directly.

?

Let v→0,v→1,…,v→2n−1\overrightarrow {v}_{0}, \overrightarrow {v}_{1}, \ldots , \overrightarrow {v}_{2^{n}-1} be an orthonormal basis in C2n\mathbb {C}^{2^{n}}. We define

U:=12n∑j=02n−1∑k=02n−1e−i2πkj/2nv→kv→j∗. U := \frac{1}{\sqrt{2^{n}}} \sum _{j=0}^{2^{n}-1} \sum _{k=0}^{2^{n}-1} e^{-i2\pi kj/2^{n}} \overrightarrow {v}_{k}\overrightarrow {v}_{j}^{*}.

Show that UU is unitary. In other words show that UU∗=I2nUU^{*} = I_{2^{n}}, using the completeness relation

I2n=∑j=02n−1v→jv→j∗. I_{2^{n}} = \sum _{j=0}^{2^{n}-1} \overrightarrow {v}_{j}\overrightarrow {v}_{j}^{*}.
?

The numbers 1,i,−1,−i1, i, -1, -i form a group under multiplication. Do the vectors

v→1=12(1i−1−i),v→2=12(i−1−i1),v→3=12(−1−i1i),v→4=12(−i1i−1) \overrightarrow {v}_{1} = \frac{1}{2} \begin{pmatrix} 1 \\ i \\ -1 \\ -i \end{pmatrix}, \quad \overrightarrow {v}_{2} = \frac{1}{2} \begin{pmatrix} i \\ -1 \\ -i \\ 1 \end{pmatrix}, \quad \overrightarrow {v}_{3} = \frac{1}{2} \begin{pmatrix} -1 \\ -i \\ 1 \\ i \end{pmatrix}, \quad \overrightarrow {v}_{4} = \frac{1}{2} \begin{pmatrix} -i \\ 1 \\ i \\ -1 \end{pmatrix}

form an orthonormal basis in C4\mathbb {C}^{4}?

?

Let nn be a prime number and j,k=1,…,nj,k = 1,\ldots ,n. Show that the matrices

(U1)jk=1nexp((2πi/n)(j+k−1)2) (U_{1})_{jk} = \frac{1}{\sqrt{n}}\mathrm{exp}\left((2\pi i/n)(j+k-1)^{2}\right) (Ur)jk=1nexp((2πi/n)r(j+k−1)2) (U_{r})_{jk} = \frac{1}{\sqrt{n}}\mathrm{exp}\left((2\pi i/n)r(j+k-1)^{2}\right) (Un−1)jk=1nexp(((2πi/n)(n−1)(j+k−1)2) (U_{n-1})_{jk} = \frac{1}{\sqrt{n}}\mathrm{exp}\left(((2\pi i/n)(n-1)(j+k-1)^{2}\right) (Un)jk=1nexp((2πi/n)jk) (U_{n})_{jk} = \frac{1}{\sqrt{n}}\mathrm{exp}\left((2\pi i/n)jk\right) (Un+1)jk=δjk (U_{n+1})_{jk} = \delta _{jk}

are unitary.

?

In the Hilbert space C4\mathbb {C}^{4} consider the Bell states

12(1001),12(0110),12(01−10),12(100−1). \frac{1}{\sqrt{2}}\begin{pmatrix} 1 \\ 0 \\ 0 \\ 1 \end{pmatrix}, \quad \frac{1}{\sqrt{2}}\begin{pmatrix} 0 \\ 1 \\ 1 \\ 0 \end{pmatrix}, \quad \frac{1}{\sqrt{2}}\begin{pmatrix} 0 \\ 1 \\ -1 \\ 0 \end{pmatrix}, \quad \frac{1}{\sqrt{2}}\begin{pmatrix} 1 \\ 0 \\ 0 \\ -1 \end{pmatrix}.
?
(i)

Let ω:=e2πi/4\omega := e^{2\pi i/4}. Apply the Fourier transformation

UF=12(11111ωω2ω31ω21ω21ω3ω2ω) U_{F} = \frac{1}{2}\begin{pmatrix} 1 & 1 & 1 & 1 \\ 1 & \omega & \omega ^{2} & \omega ^{3} \\ 1 & \omega ^{2} & 1 & \omega ^{2} \\ 1 & \omega ^{3} & \omega ^{2} & \omega \end{pmatrix}

to the Bell states and study the entanglement of these states.

(ii)

Apply the Haar wavelet transform

UH=12(111111−1−12−200002−2) U_{H} = \frac{1}{2}\begin{pmatrix} 1 & 1 & 1 & 1 \\ 1 & 1 & -1 & -1 \\ \sqrt{2} & -\sqrt{2} & 0 & 0 \\ 0 & 0 & \sqrt{2} & -\sqrt{2} \end{pmatrix}

to the Bell states and study the entanglement of these states.

(iii)

Apply the Walsh-Hadamard transform

UW=12(1111−1−111−111−11−11−1) U_{W} = \frac{1}{2}\begin{pmatrix} 1 & 1 & 1 & 1 \\ -1 & -1 & 1 & 1 \\ -1 & 1 & 1 & -1 \\ 1 & -1 & 1 & -1 \end{pmatrix}

to the Bell states and study the entanglement of these states.

Extend to the Hilbert space C2n\mathbb {C}^{2^{n}} with the first Bell state given by

12(10⋯01)T. \frac{1}{\sqrt{2}}\begin{pmatrix} 1 & 0 & \cdots & 0 & 1 \end{pmatrix}^{T}.

Let {∣a0⟩,∣a1⟩,…,∣an−1⟩}\left\{ \left|a_{0}\right\rangle , \left|a_{1}\right\rangle , \ldots , \left|a_{n-1}\right\rangle \right\} be an orthonormal basis in the Hilbert space Cn\mathbb {C}^{n}. The discrete Fourier transform

∣bj⟩=1n∑k=0n−1ωjk∣ak⟩,j=0,1,…,n−1 \left|b_{j}\right\rangle = \frac{1}{\sqrt{n}}\sum _{k=0}^{n-1} \omega ^{jk}\left|a_{k}\right\rangle , \qquad j = 0,1,\ldots ,n-1

where ω:=exp(2πi/n)\omega := \mathrm{exp}\left(2\pi i/n\right) is the primitive nn-th root of unity.

?
(i)

Apply the discrete Fourier transform to the standard basis in C4\mathbb {C}^{4}

(1000),(0100),(0010),(0001). \begin{pmatrix} 1 \\ 0 \\ 0 \\ 0 \end{pmatrix}, \quad \begin{pmatrix} 0 \\ 1 \\ 0 \\ 0 \end{pmatrix}, \quad \begin{pmatrix} 0 \\ 0 \\ 1 \\ 0 \end{pmatrix}, \quad \begin{pmatrix} 0 \\ 0 \\ 0 \\ 1 \end{pmatrix}.
(ii)

Apply the discrete Fourier transform to the Bell basis in C4\mathbb {C}^{4}

12(1001),12(100−1),12(0110),12(01−10). \frac{1}{\sqrt{2}}\begin{pmatrix} 1 \\ 0 \\ 0 \\ 1 \end{pmatrix}, \quad \frac{1}{\sqrt{2}}\begin{pmatrix} 1 \\ 0 \\ 0 \\ -1 \end{pmatrix}, \quad \frac{1}{\sqrt{2}}\begin{pmatrix} 0 \\ 1 \\ 1 \\ 0 \end{pmatrix}, \quad \frac{1}{\sqrt{2}}\begin{pmatrix} 0 \\ 1 \\ -1 \\ 0 \end{pmatrix}.

References

[Axl24] Axler S. Linear Algebra Done Right. 4th ed., Springer, 2024.
[ББП+23] Беклемишева Л.А., Беклемишев Д.В., Петрович А.Ю., Чубаров И.А. Сборник задач по аналитической геометрии и линейной алгебре. Лань, 2023.
[Mey00] Meyer C.D. Matrix Analysis and Applied Linear Algebra. SIAM, 2000.
[StHa17] Steeb W., Hardy Y. Problems and Solutions in Introductory and Advanced Matrix Calculus. 2nd ed., World Scientific Publishing, 2017.