Logo/

Complex Numbers and Quantum Computing

Log in

Made with ScholarlyMake flashcards like these from your own notes

Complex Numbers and Quantum Computing

Questions and answers

100 cards
  1. Question:What is the definition of the imaginary unit i?

    Answer:i is the square root of -1, so i² = -1.

  2. Question:How is the square root of -4 expressed using imaginary numbers?

    Answer:√(-4) = ±2i.

  3. 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.

  4. Question:How do you add two complex numbers?

    Answer:Add the real parts together and the imaginary parts together separately.

  5. Question:How do you multiply two complex numbers, remembering i²?

    Answer:Use foil method and replace i² with -1.

  6. Question:What is the complex conjugate of a + bi?

    Answer:a - bi, denoted by z*.

  7. 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².

  8. Question:How is the magnitude of a complex number a + bi calculated?

    Answer:$|z| = \sqrt{a^2 + b^2}$ using Pythagoras.

  9. Question:What is the polar form of a complex number?

    Answer:$r (\cos \theta + i \sin \theta)$, where r = |z|, $\theta = \arctan(b/a)$.

  10. Question:What is the exponential form of a complex number used in quantum computing?

    Answer:$r e^{i \theta}$.

  11. Question:Why is exponential form preferred in quantum computing for complex numbers?

    Answer:Multiplying rotates around unit circle as angles add.

  12. Question:What is an m by n matrix?

    Answer:A 2D arrangement with m rows and n columns.

  13. Question:When can you add or subtract two matrices?

    Answer:Only if they have the same number of rows and columns.

  14. Question:How do you multiply a matrix by a scalar?

    Answer:Multiply each element by the scalar.

  15. Question:What is the rule for matrix multiplication compatibility?

    Answer:Number of columns of first equals rows of second.

  16. Question:How is an element computed in matrix multiplication?

    Answer:Dot product of row from left matrix and column from right matrix.

  17. Question:What is a column vector?

    Answer:An n × 1 matrix.

  18. Question:How do matrices act on column vectors in quantum computing?

    Answer:Matrix multiplication transforms the vector, representing state operations.

  19. Question:What is the identity matrix?

    Answer:All zeros except 1s on the main diagonal.

  20. Question:What is the matrix inverse?

    Answer:$A^{-1}$ such that $A^{-1} A = I$.

  21. Question:What is the complex conjugate of a matrix?

    Answer:Flip sign of imaginary parts of all elements, denoted A*.

  22. Question:What is the transpose of a matrix?

    Answer:Exchange rows and columns, denoted A^T.

  23. Question:What is the dagger notation for a matrix?

    Answer:A^† = (A*)^T, complex conjugate transpose.

  24. Question:What defines a unitary matrix U?

    Answer:$U^\dagger U = I$, so U^† is inverse.

  25. Question:What defines a Hermitian matrix H?

    Answer:$H = H^\dagger$.

  26. Question:What is an eigenvector and eigenvalue?

    Answer:A v = λ v, where v is eigenvector, λ eigenvalue (scalar).

  27. 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}$.

  28. Question:What is the general state of a qubit?

    Answer:$|\psi\rangle = \alpha |0\rangle + \beta |1\rangle$, with $|\alpha|^2 + |\beta|^2 = 1$.

  29. Question:What is superposition in a qubit?

    Answer:Both α and β nonzero, qubit in both |0⟩ and |1⟩ simultaneously.

  30. Question:What happens when measuring a qubit?

    Answer:Collapses to |0⟩ with prob |α|² or |1⟩ with |β|².

  31. Question:What is Dirac notation?

    Answer:$|\psi\rangle$ for ket (column vector), ⟨ψ| for bra (row).

  32. Question:What does the Bloch sphere represent?

    Answer:Qubit states as points on unit sphere, |0⟩ north pole, |1⟩ south.

  33. Question:What does the X gate do to a qubit?

    Answer:Flips |0⟩ to |1⟩ and vice versa, rotates 180° around X-axis.

  34. Question:What does the Y gate do?

    Answer:Rotates 180° (π radians) around Y-axis.

  35. Question:What does the Z gate do?

    Answer:Rotates 180° (π radians) around Z-axis, multiplies |1⟩ by -1.

  36. Question:Are X, Y, Z gates their own inverses?

    Answer:Yes, applying twice returns original state.

  37. 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}$.

  38. Question:Is Hadamard its own inverse?

    Answer:Yes, H H = I.

  39. Question:Why does Hadamard show phase matters?

    Answer:|+⟩ → |0⟩, |−⟩ → |1⟩, differ only by relative phase but different outcomes.

  40. Question:What does the S gate add?

    Answer:Relative phase of i (π/2 radians).

  41. Question:What is S†, the inverse of S?

    Answer:Adds relative phase of -i (-π/2).

  42. Question:What does the T gate add?

    Answer:Relative phase of e^{iπ/4} (π/4 radians).

  43. Question:What is relative phase?

    Answer:Multiplying |1⟩ amplitude by e^{iφ}, rotates around Z on Bloch sphere.

  44. Question:How is a two-qubit state represented?

    Answer:Tensor product, e.g. |00⟩ = |0⟩ ⊗ |0⟩.

  45. Question:What is shorthand for n |0⟩ qubits?

    Answer:|0^n⟩.

  46. Question:What is a quantum circuit diagram?

    Answer:Horizontal: time (left to right), vertical: qubits, boxes: gates, meters: measurements.

  47. Question:What is the CNOT gate?

    Answer:Controlled-NOT: if control |1⟩, apply X to target; else nothing.

  48. Question:What is the Toffoli gate?

    Answer:CCNOT: X on target if both controls |1⟩.

  49. Question:How to represent controlled single-qubit gates?

    Answer:Gate box with line to control qubit.

  50. 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.

  51. Question:What happens after measuring one qubit in multi-qubit state?

    Answer:Collapses: keep terms matching measurement, normalize so probs sum to 1.

  52. Question:What is entanglement?

    Answer:State not writable as tensor product of single-qubit states.

  53. Question:What is a maximally entangled state example?

    Answer:$\frac{|00\rangle + |11\rangle}{\sqrt{2}}$, Bell state.

  54. Question:What is partial entanglement?

    Answer:Measuring one affects probabilities or phase of others.

  55. Question:What is phase kickback?

    Answer:In controlled-U, if target eigenstate of U with e^{iθ}, control gets phase e^{iθ}.

  56. Question:In superdense coding, how many classical bits sent with one qubit?

    Answer:Two, using shared entanglement.

  57. Question:What are the four classical bit operations?

    Answer:NOT, AND, OR, XOR.

  58. Question:Why must quantum operations be reversible?

    Answer:Unitary matrices preserve information, reversible.

  59. Question:How to make classical gate reversible?

    Answer:Input ancillary C, output C ⊕ f(x), keep x.

  60. Question:What is the standard quantum function oracle U_f?

    Answer:$U_f |x\rangle |y\rangle = |x\rangle |y \oplus f(x)\rangle$.

  61. Question:What is a phase oracle?

    Answer:U_f on |x⟩|−⟩ gives (−1)^{f(x)} |x⟩|−⟩.

  62. Question:What is the no-cloning theorem?

    Answer:Cannot copy unknown qubit state without knowing amplitudes.

  63. Question:What problem does Deutsch's algorithm solve?

    Answer:Is 1-bit f constant or balanced? With 1 query.

  64. Question:In Deutsch, if measure 0 after circuit, what is f?

    Answer:Constant (f(0)=f(1)).

  65. Question:What is constant function for 1-bit?

    Answer:Always 0 or always 1.

  66. Question:What is balanced for n-bit?

    Answer:0 on half inputs, 1 on half.

  67. Question:Classical queries worst-case for DJ?

    Answer:2^{n-1} + 1.

  68. Question:Key identity: H^{\otimes n} |0^n\rangle = ?

    Answer:$\frac{1}{\sqrt{2^n}} \sum_x |x\rangle$.

  69. Question:In DJ, if measure all 0s, f is?

    Answer:Constant.

  70. Question:What does Bernstein-Vazirani find?

    Answer:Secret s where f(x) = x · s mod 2.

  71. Question:In BV, measurement gives?

    Answer:The secret string s.

  72. Question:How does QFT encode a number j?

    Answer:Phases on uniform superposition: rightmost qubit rotates j/2^n * 2π, doubling leftward.

  73. 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$.

  74. Question:What gates are in QFT circuit?

    Answer:Hadamards, controlled-R_k (phase e^{2πi / 2^k}), swaps.

  75. Question:What does QPE estimate?

    Answer:Eigenvalue e^{iθ} of unitary U on eigenvector |v⟩, θ = 2π j.

  76. Question:In Shor's, what is goal?

    Answer:Factor N = p q, primes, via period r of a^x mod N.

  77. Question:In Shor's, period finding uses?

    Answer:QPE on U |x⟩ = |a^x mod N⟩.

  78. Question:How to get factors from period r?

    Answer:gcd(a^{r/2} ±1, N).

  79. Question:In Shor example N=15, a=7, what is r?

    Answer:4.

  80. Question:What distinguishes unitary from other matrices in QC?

    Answer:Preserves norms, reversible operations.

  81. Question:How does Z gate affect probabilities?

    Answer:No change, only relative phase.

  82. Question:What are the four equatorial states on Bloch sphere?

    Answer:|+⟩, |−⟩, |i⟩, |−i⟩.

  83. Question:Global vs relative phase?

    Answer:Global: whole state × e^{iφ}, irrelevant; relative: only |1⟩ × e^{iφ}, matters.

  84. Question:Why phase irrelevant for single measurement prob?

    Answer:|e^{iφ}|² =1.

  85. Question:In multi-qubit, how many basis states for n qubits?

    Answer:2^n.

  86. Question:Example of Bell states?

    Answer:Φ⁺ = (|00⟩ + |11⟩)/√2, etc.

  87. Question:In superdense coding, Alice sends 00 by doing what?

    Answer:Nothing.

  88. Question:Truth table for AND gate?

    Answer:1 only if both inputs 1.

  89. Question:Why OR not reversible?

    Answer:Output 1 maps from multiple inputs.

  90. Question:In phase oracle, f(x)=0 gives what phase?

    Answer:+1.

  91. Question:Deutsch circuit starts with what gates?

    Answer:H on both qubits after |00⟩.

  92. Question:DJ identity for H on |x⟩?

    Answer:$\frac{1}{\sqrt{2}} (|0\rangle + (-1)^x |1\rangle)$.

  93. Question:In BV, why measure s?

    Answer:Amplitude peaks at s due to interference.

  94. Question:QFT uses controlled phase gates with what angle?

    Answer:$2\pi / 2^k$ for k.

  95. Question:In QPE, powers of U are controlled how?

    Answer:U^{2^{m-k}} on target, controlled by k-th qubit.

  96. Question:Shor's requires gcd(a,N)=1 why?

    Answer:a coprime to N for period to exist properly.

  97. Question:Continued fractions in Shor for what?

    Answer:Approximate s/r from decimal j.

  98. Question:How to normalize after collapse?

    Answer:Divide by sqrt(sum of |amps|² of kept terms).

  99. Question:What is |+⟩ explicitly?

    Answer:$\frac{|0\rangle + |1\rangle}{\sqrt{2}}$.

  100. Question:Difference between maximally and partially entangled?

    Answer:Maximally: measure one fixes others exactly; partial: only probabilities/phases affected.