Made with ScholarlyMake flashcards like these from your own notes
Question:What is the definition of the imaginary unit i?
Answer:i is the square root of -1, so i² = -1.
Question:How is the square root of -4 expressed using imaginary numbers?
Answer:√(-4) = ±2i.
Question:What is a complex number?
Answer:A complex number is of the form a + bi, where a is the real part and b is the imaginary part, both real numbers.
Question:How do you add two complex numbers?
Answer:Add the real parts together and the imaginary parts together separately.
Question:How do you multiply two complex numbers, remembering i²?
Answer:Use foil method and replace i² with -1.
Question:What is the complex conjugate of a + bi?
Answer:a - bi, denoted by z*.
Question:What result do you get when multiplying a complex number by its conjugate?
Answer:A real number equal to the magnitude squared, |z|² = a² + b².
Question:How is the magnitude of a complex number a + bi calculated?
Answer:$|z| = \sqrt{a^2 + b^2}$ using Pythagoras.
Question:What is the polar form of a complex number?
Answer:$r (\cos \theta + i \sin \theta)$, where r = |z|, $\theta = \arctan(b/a)$.
Question:What is the exponential form of a complex number used in quantum computing?
Answer:$r e^{i \theta}$.
Question:Why is exponential form preferred in quantum computing for complex numbers?
Answer:Multiplying rotates around unit circle as angles add.
Question:What is an m by n matrix?
Answer:A 2D arrangement with m rows and n columns.
Question:When can you add or subtract two matrices?
Answer:Only if they have the same number of rows and columns.
Question:How do you multiply a matrix by a scalar?
Answer:Multiply each element by the scalar.
Question:What is the rule for matrix multiplication compatibility?
Answer:Number of columns of first equals rows of second.
Question:How is an element computed in matrix multiplication?
Answer:Dot product of row from left matrix and column from right matrix.
Question:What is a column vector?
Answer:An n × 1 matrix.
Question:How do matrices act on column vectors in quantum computing?
Answer:Matrix multiplication transforms the vector, representing state operations.
Question:What is the identity matrix?
Answer:All zeros except 1s on the main diagonal.
Question:What is the matrix inverse?
Answer:$A^{-1}$ such that $A^{-1} A = I$.
Question:What is the complex conjugate of a matrix?
Answer:Flip sign of imaginary parts of all elements, denoted A*.
Question:What is the transpose of a matrix?
Answer:Exchange rows and columns, denoted A^T.
Question:What is the dagger notation for a matrix?
Answer:A^† = (A*)^T, complex conjugate transpose.
Question:What defines a unitary matrix U?
Answer:$U^\dagger U = I$, so U^† is inverse.
Question:What defines a Hermitian matrix H?
Answer:$H = H^\dagger$.
Question:What is an eigenvector and eigenvalue?
Answer:A v = λ v, where v is eigenvector, λ eigenvalue (scalar).
Question:What are the basis states for a qubit?
Answer:$|0\rangle = \begin{pmatrix} 1 \\ 0 \end{pmatrix}$, $|1\rangle = \begin{pmatrix} 0 \\ 1 \end{pmatrix}$.
Question:What is the general state of a qubit?
Answer:$|\psi\rangle = \alpha |0\rangle + \beta |1\rangle$, with $|\alpha|^2 + |\beta|^2 = 1$.
Question:What is superposition in a qubit?
Answer:Both α and β nonzero, qubit in both |0⟩ and |1⟩ simultaneously.
Question:What happens when measuring a qubit?
Answer:Collapses to |0⟩ with prob |α|² or |1⟩ with |β|².
Question:What is Dirac notation?
Answer:$|\psi\rangle$ for ket (column vector), ⟨ψ| for bra (row).
Question:What does the Bloch sphere represent?
Answer:Qubit states as points on unit sphere, |0⟩ north pole, |1⟩ south.
Question:What does the X gate do to a qubit?
Answer:Flips |0⟩ to |1⟩ and vice versa, rotates 180° around X-axis.
Question:What does the Y gate do?
Answer:Rotates 180° (π radians) around Y-axis.
Question:What does the Z gate do?
Answer:Rotates 180° (π radians) around Z-axis, multiplies |1⟩ by -1.
Question:Are X, Y, Z gates their own inverses?
Answer:Yes, applying twice returns original state.
Question:What is the Hadamard gate action on |0⟩ and |1⟩?
Answer:H|0⟩ = |+⟩ = $(|0\rangle + |1\rangle)/\sqrt{2}$, H|1⟩ = |−⟩ = $(|0\rangle - |1\rangle)/\sqrt{2}$.
Question:Is Hadamard its own inverse?
Answer:Yes, H H = I.
Question:Why does Hadamard show phase matters?
Answer:|+⟩ → |0⟩, |−⟩ → |1⟩, differ only by relative phase but different outcomes.
Question:What does the S gate add?
Answer:Relative phase of i (π/2 radians).
Question:What is S†, the inverse of S?
Answer:Adds relative phase of -i (-π/2).
Question:What does the T gate add?
Answer:Relative phase of e^{iπ/4} (π/4 radians).
Question:What is relative phase?
Answer:Multiplying |1⟩ amplitude by e^{iφ}, rotates around Z on Bloch sphere.
Question:How is a two-qubit state represented?
Answer:Tensor product, e.g. |00⟩ = |0⟩ ⊗ |0⟩.
Question:What is shorthand for n |0⟩ qubits?
Answer:|0^n⟩.
Question:What is a quantum circuit diagram?
Answer:Horizontal: time (left to right), vertical: qubits, boxes: gates, meters: measurements.
Question:What is the CNOT gate?
Answer:Controlled-NOT: if control |1⟩, apply X to target; else nothing.
Question:What is the Toffoli gate?
Answer:CCNOT: X on target if both controls |1⟩.
Question:How to represent controlled single-qubit gates?
Answer:Gate box with line to control qubit.
Question:How to compute probability of measuring a specific qubit value in multi-qubit?
Answer:Sum |coeff|² over all states where that qubit is the value.
Question:What happens after measuring one qubit in multi-qubit state?
Answer:Collapses: keep terms matching measurement, normalize so probs sum to 1.
Question:What is entanglement?
Answer:State not writable as tensor product of single-qubit states.
Question:What is a maximally entangled state example?
Answer:$\frac{|00\rangle + |11\rangle}{\sqrt{2}}$, Bell state.
Question:What is partial entanglement?
Answer:Measuring one affects probabilities or phase of others.
Question:What is phase kickback?
Answer:In controlled-U, if target eigenstate of U with e^{iθ}, control gets phase e^{iθ}.
Question:In superdense coding, how many classical bits sent with one qubit?
Answer:Two, using shared entanglement.
Question:What are the four classical bit operations?
Answer:NOT, AND, OR, XOR.
Question:Why must quantum operations be reversible?
Answer:Unitary matrices preserve information, reversible.
Question:How to make classical gate reversible?
Answer:Input ancillary C, output C ⊕ f(x), keep x.
Question:What is the standard quantum function oracle U_f?
Answer:$U_f |x\rangle |y\rangle = |x\rangle |y \oplus f(x)\rangle$.
Question:What is a phase oracle?
Answer:U_f on |x⟩|−⟩ gives (−1)^{f(x)} |x⟩|−⟩.
Question:What is the no-cloning theorem?
Answer:Cannot copy unknown qubit state without knowing amplitudes.
Question:What problem does Deutsch's algorithm solve?
Answer:Is 1-bit f constant or balanced? With 1 query.
Question:In Deutsch, if measure 0 after circuit, what is f?
Answer:Constant (f(0)=f(1)).
Question:What is constant function for 1-bit?
Answer:Always 0 or always 1.
Question:What is balanced for n-bit?
Answer:0 on half inputs, 1 on half.
Question:Classical queries worst-case for DJ?
Answer:2^{n-1} + 1.
Question:Key identity: H^{\otimes n} |0^n\rangle = ?
Answer:$\frac{1}{\sqrt{2^n}} \sum_x |x\rangle$.
Question:In DJ, if measure all 0s, f is?
Answer:Constant.
Question:What does Bernstein-Vazirani find?
Answer:Secret s where f(x) = x · s mod 2.
Question:In BV, measurement gives?
Answer:The secret string s.
Question:How does QFT encode a number j?
Answer:Phases on uniform superposition: rightmost qubit rotates j/2^n * 2π, doubling leftward.
Question:What is QFT on basis |j⟩?
Answer:$\frac{1}{\sqrt{2^n}} \sum_k e^{2\pi i j k / 2^n} |k\rangle$.
Question:What gates are in QFT circuit?
Answer:Hadamards, controlled-R_k (phase e^{2πi / 2^k}), swaps.
Question:What does QPE estimate?
Answer:Eigenvalue e^{iθ} of unitary U on eigenvector |v⟩, θ = 2π j.
Question:In Shor's, what is goal?
Answer:Factor N = p q, primes, via period r of a^x mod N.
Question:In Shor's, period finding uses?
Answer:QPE on U |x⟩ = |a^x mod N⟩.
Question:How to get factors from period r?
Answer:gcd(a^{r/2} ±1, N).
Question:In Shor example N=15, a=7, what is r?
Answer:4.
Question:What distinguishes unitary from other matrices in QC?
Answer:Preserves norms, reversible operations.
Question:How does Z gate affect probabilities?
Answer:No change, only relative phase.
Question:What are the four equatorial states on Bloch sphere?
Answer:|+⟩, |−⟩, |i⟩, |−i⟩.
Question:Global vs relative phase?
Answer:Global: whole state × e^{iφ}, irrelevant; relative: only |1⟩ × e^{iφ}, matters.
Question:Why phase irrelevant for single measurement prob?
Answer:|e^{iφ}|² =1.
Question:In multi-qubit, how many basis states for n qubits?
Answer:2^n.
Question:Example of Bell states?
Answer:Φ⁺ = (|00⟩ + |11⟩)/√2, etc.
Question:In superdense coding, Alice sends 00 by doing what?
Answer:Nothing.
Question:Truth table for AND gate?
Answer:1 only if both inputs 1.
Question:Why OR not reversible?
Answer:Output 1 maps from multiple inputs.
Question:In phase oracle, f(x)=0 gives what phase?
Answer:+1.
Question:Deutsch circuit starts with what gates?
Answer:H on both qubits after |00⟩.
Question:DJ identity for H on |x⟩?
Answer:$\frac{1}{\sqrt{2}} (|0\rangle + (-1)^x |1\rangle)$.
Question:In BV, why measure s?
Answer:Amplitude peaks at s due to interference.
Question:QFT uses controlled phase gates with what angle?
Answer:$2\pi / 2^k$ for k.
Question:In QPE, powers of U are controlled how?
Answer:U^{2^{m-k}} on target, controlled by k-th qubit.
Question:Shor's requires gcd(a,N)=1 why?
Answer:a coprime to N for period to exist properly.
Question:Continued fractions in Shor for what?
Answer:Approximate s/r from decimal j.
Question:How to normalize after collapse?
Answer:Divide by sqrt(sum of |amps|² of kept terms).
Question:What is |+⟩ explicitly?
Answer:$\frac{|0\rangle + |1\rangle}{\sqrt{2}}$.
Question:Difference between maximally and partially entangled?
Answer:Maximally: measure one fixes others exactly; partial: only probabilities/phases affected.