QuantumCore

Hands-on lab · 1 step

Gram–Schmidt in C^3

Orthonormalise v1=(1,i,0)Tv_1=(1,i,0)^T and v2=(1,0,1)Tv_2=(1,0,1)^T with Gram–Schmidt, using the conjugate-linear inner product ⟨u∣v⟩=∑kuk‾vk\langle u\vert v\rangle=\sum_k\overline{u_k}v_k.

0/1 step passedBest score 0/100

Step 1: Orthonormalise two vectors

Apply Gram–Schmidt to v1=(1,i,0)Tv_1=(1,i,0)^T and v2=(1,0,1)Tv_2=(1,0,1)^T in that order: e1=v1/∥v1∥e_1=v_1/\lVert v_1\rVert and e2=v2−⟨e1∣v2⟩e1∥v2−⟨e1∣v2⟩e1∥e_2=\dfrac{v_2-\langle e_1\vert v_2\rangle e_1}{\lVert v_2-\langle e_1\vert v_2\rangle e_1\rVert}. Enter the 3×23\times2 complex matrix whose first column is e1e_1 and whose second column is e2e_2. Normalise by dividing by the (positive) norm; do not multiply either vector by an extra phase, because the Gram–Schmidt output is unique. Entries are accepted within 2×10−32\times10^{-3}.

Enter each entry as an expression, e.g. 1/sqrt(2), -i/2, exp(i*pi/4). Rows run top to bottom, columns left to right.

enter a value
enter a value
enter a value
enter a value
enter a value
enter a value
Fill every entry with a valid expression.