1. Home
  2. Explore
  3. Computer Science
  4. Quantum Circuit Model

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Quantum Circuit Model

  • 40Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Quantum Circuits

In the quantum circuit model, what do wires and gates represent?

40 questions

  1. 1

    In the quantum circuit model, what do wires and gates represent?

    Model answer

    Wires represent qubits, and gates represent unitary operations or measurements applied to those qubits.

    Explanation

    This is the basic definition: wires carry quantum information (qubits), gates perform operations.

  2. 2

    What direction does information flow in acyclic quantum circuits?

    Model answer

    Information flows from left to right.

    Explanation

    Circuits are acyclic, and we adopt the convention that time progresses left to right.

  3. 3

    How are Boolean circuits similar to quantum circuits?

    Model answer

    Both have wires carrying information and gates representing operations; Boolean circuits use bits and logic gates, while quantum circuits use qubits and unitary gates/measurements.

    Explanation

    They share the same abstract structure.

  4. 4

    What is the ordering convention for qubits in quantum circuit diagrams, and how does it relate to tensor products?

    Model answer

    The bottom-to-top ordering in the diagram corresponds to left-to-right ordering in a tensor product (or tuple). For two qubits X (bottom) and Y (top), the state is ∣X⟩⊗∣Y⟩|X\rangle \otimes |Y\rangle∣X⟩⊗∣Y⟩.

    Explanation

    This convention matches Qiskit and is important for matrix representations.

  5. 5

    How are classical bits represented in quantum circuit diagrams?

    Model answer

    Classical bits are represented by double lines.

    Explanation

    Double lines distinguish classical from quantum information.

  6. 6

    Describe the standard symbol for a standard basis measurement in a quantum circuit.

    Model answer

    It is represented by a symbol that looks like a gauge or meter, often with a line from the qubit to a classical bit.

    Explanation

    The exact shape may vary, but it typically has a curved arrow or gauge.

  7. 7

    What is the shorthand notation for measuring a qubit and discarding it?

    Model answer

    The measurement symbol receives the qubit as input and outputs a classical bit; the qubit is not shown afterwards, implying it is discarded.

    Explanation

    This simplifies diagrams when only the measurement result matters.

  8. 8

    Describe the symbols for a CNOT gate, a swap gate, a Toffoli gate, and a Fredkin gate.

    Model answer

    CNOT: a filled circle (control) connected to a circle with a plus (target). Swap: two crossing lines (X symbols). Toffoli: two control circles and one target circle with plus. Fredkin: a control circle and a swap symbol (crossed lines with a vertical bar).

    Explanation

    These are standard symbols.

  9. 9

    How are arbitrary unitary operations represented in a quantum circuit?

    Model answer

    As a rectangle with a label indicating the unitary, e.g., a box with 'UUU'. For controlled-UUU, a control dot connects to the box.

    Explanation

    This abstracts the internal implementation.

  10. 10

    What is the action of a CNOT gate on standard basis states?

    Model answer

    ∣a,b⟩→∣a,a⊕b⟩|a,b\rangle \rightarrow |a, a\oplus b\rangle∣a,b⟩→∣a,a⊕b⟩, where aaa is the control and bbb is the target.

    Explanation

    It XORs the control onto the target.

  11. 11

    Given a single-qubit circuit with gates H, S, H, T applied in sequence, what is the overall unitary matrix?

    Model answer

    U=THSHU = T H S HU=THSH. Compute: H=12[111−1]H = \frac{1}{\sqrt{2}}\begin{bmatrix}1&1\\1&-1\end{bmatrix}H=2​1​[11​1−1​], S=[100i]S = \begin{bmatrix}1&0\\0&i\end{bmatrix}S=[10​0i​], T=[100eiπ/4]T = \begin{bmatrix}1&0\\0&e^{i\pi/4}\end{bmatrix}T=[10​0eiπ/4​]. Multiply to get the matrix.

    Explanation

    Order of multiplication is reverse of circuit order.

  12. 12

    The two-qubit circuit consisting of a Hadamard on Y followed by a CNOT with control Y and target X produces Bell states. Show the output for input ∣0⟩∣0⟩|0\rangle|0\rangle∣0⟩∣0⟩.

    Model answer

    Start ∣0⟩X⊗∣0⟩Y|0\rangle_X \otimes |0\rangle_Y∣0⟩X​⊗∣0⟩Y​. After H on Y: ∣0⟩⊗(∣0⟩+∣1⟩)/2=(∣00⟩+∣01⟩)/2|0\rangle \otimes (|0\rangle+|1\rangle)/\sqrt{2} = (|00\rangle+|01\rangle)/\sqrt{2}∣0⟩⊗(∣0⟩+∣1⟩)/2​=(∣00⟩+∣01⟩)/2​. CNOT with control Y toggles X when Y=1: (∣00⟩+∣11⟩)/2=Φ+(|00\rangle+|11\rangle)/\sqrt{2} = \Phi^+(∣00⟩+∣11⟩)/2​=Φ+.

    Explanation

    This is a standard Bell state preparation.

  13. 13

    Define the inner product of two vectors ∣ψ⟩|\psi\rangle∣ψ⟩ and ∣ϕ⟩|\phi\rangle∣ϕ⟩ in Dirac notation.

    Model answer

    ⟨ψ∣ϕ⟩=∑iψi∗ϕi\langle \psi | \phi \rangle = \sum_i \psi_i^* \phi_i⟨ψ∣ϕ⟩=∑i​ψi∗​ϕi​, where ψi\psi_iψi​ and ϕi\phi_iϕi​ are amplitudes in a fixed basis.

    Explanation

    It is the conjugate transpose of ∣ψ⟩|\psi\rangle∣ψ⟩ times ∣ϕ⟩|\phi\rangle∣ϕ⟩.

  14. 14

    How is the Euclidean norm of a vector related to its inner product with itself?

    Model answer

    ∣∣ψ∣∣=⟨ψ∣ψ⟩||\psi|| = \sqrt{\langle \psi | \psi \rangle}∣∣ψ∣∣=⟨ψ∣ψ⟩​.

    Explanation

    The norm squared equals the inner product.

  15. 15

    State the Cauchy-Schwarz inequality for arbitrary vectors ∣ψ⟩|\psi\rangle∣ψ⟩ and ∣ϕ⟩|\phi\rangle∣ϕ⟩.

    Model answer

    ∣⟨ψ∣ϕ⟩∣≤∣∣ψ∣∣ ∣∣ϕ∣∣|\langle \psi | \phi \rangle| \leq ||\psi|| \, ||\phi||∣⟨ψ∣ϕ⟩∣≤∣∣ψ∣∣∣∣ϕ∣∣, with equality if and only if ∣ψ⟩|\psi\rangle∣ψ⟩ and ∣ϕ⟩|\phi\rangle∣ϕ⟩ are linearly dependent.

    Explanation

    A fundamental inequality.

  16. 16

    What does it mean for two vectors to be orthogonal?

    Model answer

    Their inner product is zero.

    Explanation

    Orthogonal vectors are perpendicular in the complex vector space.

  17. 17

    Define an orthonormal set of vectors.

    Model answer

    A set where every vector has unit norm and any two distinct vectors are orthogonal.

    Explanation

    Orthonormal sets are useful because they form a basis for the subspace they span.

  18. 18

    What is an orthonormal basis?

    Model answer

    An orthonormal set that spans the entire vector space.

    Explanation

    Every vector can be expressed as a linear combination of basis vectors with coefficients given by inner products.

  19. 19

    Give an example of an orthonormal basis for a single qubit that is not the computational basis.

    Model answer

    The Hadamard basis: {∣+⟩,∣−⟩}\{|+\rangle, |-\rangle\}{∣+⟩,∣−⟩} where ∣+⟩=(∣0⟩+∣1⟩)/2|+\rangle = (|0\rangle+|1\rangle)/\sqrt{2}∣+⟩=(∣0⟩+∣1⟩)/2​, ∣−⟩=(∣0⟩−∣1⟩)/2|-\rangle = (|0\rangle-|1\rangle)/\sqrt{2}∣−⟩=(∣0⟩−∣1⟩)/2​.

    Explanation

    These are orthogonal and unit vectors.

  20. 20

    Why is the set {∣0⟩,∣+⟩}\{|0\rangle, |+\rangle\}{∣0⟩,∣+⟩} not an orthonormal set?

    Model answer

    ⟨0∣+⟩=1/2≠0\langle 0 | + \rangle = 1/\sqrt{2} \neq 0⟨0∣+⟩=1/2​=0, so they are not orthogonal.

    Explanation

    Orthonormal sets require orthogonality.

  21. 21

    Can any orthonormal set of MMM vectors in an NNN-dimensional space be extended to an orthonormal basis? Explain.

    Model answer

    Yes, there always exist additional vectors to form an orthonormal basis; one method is the Gram-Schmidt process.

    Explanation

    This is a key fact used to construct unitary matrices.

  22. 22

    What is the relationship between unitary matrices and orthonormal bases?

    Model answer

    The columns of a unitary matrix form an orthonormal basis, and similarly the rows form an orthonormal basis.

    Explanation

    U†U=IU^\dagger U = IU†U=I implies columns are orthonormal; UU†=IU U^\dagger = IUU†=I implies rows are orthonormal.

  23. 23

    How can you construct a unitary matrix given an orthonormal set of vectors?

    Model answer

    Use the vectors as the first columns, then fill the remaining columns with any orthonormal vectors that complete the basis.

    Explanation

    By extending the orthonormal set to a full orthonormal basis.

  24. 24

    Verify that ∣ψ⟩⟨ψ∣|\psi\rangle\langle\psi|∣ψ⟩⟨ψ∣ is a projection when ∣ψ⟩|\psi\rangle∣ψ⟩ is a unit vector.

    Model answer

    Hermitian: (∣ψ⟩⟨ψ∣)†=∣ψ⟩⟨ψ∣(|\psi\rangle\langle\psi|)^\dagger = |\psi\rangle\langle\psi|(∣ψ⟩⟨ψ∣)†=∣ψ⟩⟨ψ∣; idempotent: (∣ψ⟩⟨ψ∣)2=∣ψ⟩⟨ψ∣⟨ψ∣ψ⟩=∣ψ⟩⟨ψ∣(|\psi\rangle\langle\psi|)^2 = |\psi\rangle\langle\psi|\langle\psi|\psi\rangle = |\psi\rangle\langle\psi|(∣ψ⟩⟨ψ∣)2=∣ψ⟩⟨ψ∣⟨ψ∣ψ⟩=∣ψ⟩⟨ψ∣.

    Explanation

    It projects onto the span of ∣ψ⟩|\psi\rangle∣ψ⟩.

  25. 25

    What are the two defining properties of a projection matrix Π\PiΠ?

    Model answer

    Π\PiΠ is Hermitian (Π†=Π\Pi^\dagger = \PiΠ†=Π) and idempotent (Π2=Π\Pi^2 = \PiΠ2=Π).

    Explanation

    These define orthogonal projections.

  26. 26

    Define a projective measurement in quantum mechanics.

    Model answer

    A set of projection matrices {Πk}\{\Pi_k\}{Πk​} with ∑kΠk=I\sum_k \Pi_k = I∑k​Πk​=I. Measurement outcomes correspond to kkk with probability p(k)=⟨ψ∣Πk∣ψ⟩p(k)=\langle\psi|\Pi_k|\psi\ranglep(k)=⟨ψ∣Πk​∣ψ⟩, and post-measurement state is (Πk∣ψ⟩)/p(k)(\Pi_k|\psi\rangle)/\sqrt{p(k)}(Πk​∣ψ⟩)/p(k)​.

    Explanation

    Projective measurements generalize standard basis measurements.

  27. 27

    Show that a standard basis measurement is a projective measurement.

    Model answer

    The projectors are Πa=∣a⟩⟨a∣\Pi_a = |a\rangle\langle a|Πa​=∣a⟩⟨a∣ for each computational basis state aaa. They sum to III, are Hermitian and idempotent.

    Explanation

    This demonstrates the connection.

  28. 28

    Give an example of a projective measurement on two qubits that is not a standard basis measurement.

    Model answer

    A measurement with two outcomes: one projector onto the subspace spanned by the three symmetric Bell states {Φ+,Φ−,Ψ+}\{\Phi^+, \Phi^-, \Psi^+\}{Φ+,Φ−,Ψ+} and the other onto the antisymmetric state Ψ−\Psi^-Ψ−.

    Explanation

    This is a non-standard measurement.

  29. 29

    How can any projective measurement be implemented physically?

    Model answer

    By applying a suitable unitary operation followed by a standard basis measurement on an ancillary system.

    Explanation

    The unitary transforms the measurement basis to the computational basis.

  30. 30

    What is the probability of outcome kkk when measuring state ∣ψ⟩|\psi\rangle∣ψ⟩ with projective measurement {Πk}\{\Pi_k\}{Πk​}?

    Model answer

    p(k)=⟨ψ∣Πk∣ψ⟩=∣∣Πk∣ψ⟩∣∣2p(k) = \langle\psi|\Pi_k|\psi\rangle = ||\Pi_k|\psi\rangle||^2p(k)=⟨ψ∣Πk​∣ψ⟩=∣∣Πk​∣ψ⟩∣∣2.

    Explanation

    This is the Born rule for projective measurements.

  31. 31

    After obtaining outcome kkk in a projective measurement, what is the post-measurement state?

    Model answer

    (Πk∣ψ⟩)/∣∣Πk∣ψ⟩∣∣(\Pi_k|\psi\rangle)/||\Pi_k|\psi\rangle||(Πk​∣ψ⟩)/∣∣Πk​∣ψ⟩∣∣, up to a global phase.

    Explanation

    The state collapses to the projected vector, normalized.

  32. 32

    What is a global phase in quantum mechanics?

    Model answer

    Two state vectors that differ by a complex scalar α\alphaα with ∣α∣=1|\alpha|=1∣α∣=1, i.e., ∣ψ⟩|\psi\rangle∣ψ⟩ and α∣ψ⟩\alpha|\psi\rangleα∣ψ⟩.

    Explanation

    They represent the same physical state.

  33. 33

    Why can global phases be ignored?

    Model answer

    They have no effect on measurement probabilities or the evolution under unitary operations; they are physically indistinguishable.

    Explanation

    All observable predictions are independent of global phase.

  34. 34

    Give an example of two states that differ by a global phase, and two that differ by a relative phase but not global.

    Model answer

    Global phase: ∣−⟩|-\rangle∣−⟩ and −∣−⟩-|-\rangle−∣−⟩ (multiply by −1-1−1). Relative phase: ∣+⟩=(∣0⟩+∣1⟩)/2|+\rangle = (|0\rangle+|1\rangle)/\sqrt{2}∣+⟩=(∣0⟩+∣1⟩)/2​ and ∣−⟩=(∣0⟩−∣1⟩)/2|-\rangle = (|0\rangle-|1\rangle)/\sqrt{2}∣−⟩=(∣0⟩−∣1⟩)/2​; they differ by a sign on ∣1⟩|1\rangle∣1⟩, not a global factor.

    Explanation

    Global phase multiplies entire state, relative phase is basis-dependent.

  35. 35

    State the no-cloning theorem.

    Model answer

    There is no unitary operation that can copy an arbitrary unknown quantum state. More precisely, no unitary UUU satisfies U(∣ψ⟩⊗∣0⟩)=∣ψ⟩⊗∣ψ⟩U(|\psi\rangle\otimes|0\rangle) = |\psi\rangle\otimes|\psi\rangleU(∣ψ⟩⊗∣0⟩)=∣ψ⟩⊗∣ψ⟩ for all ∣ψ⟩|\psi\rangle∣ψ⟩.

    Explanation

    This forbids perfect cloning.

  36. 36

    Explain why linearity prevents cloning.

    Model answer

    If UUU clones basis states ∣0⟩|0\rangle∣0⟩ and ∣1⟩|1\rangle∣1⟩, then by linearity, U(∣0⟩+∣1⟩)/2=(∣00⟩+∣11⟩)/2U(|0\rangle+|1\rangle)/\sqrt{2} = (|00\rangle+|11\rangle)/\sqrt{2}U(∣0⟩+∣1⟩)/2​=(∣00⟩+∣11⟩)/2​, but perfect cloning would require (∣0⟩+∣1⟩)/2⊗(∣0⟩+∣1⟩)/2=(∣00⟩+∣01⟩+∣10⟩+∣11⟩)/2(|0\rangle+|1\rangle)/\sqrt{2} \otimes (|0\rangle+|1\rangle)/\sqrt{2} = (|00\rangle+|01\rangle+|10\rangle+|11\rangle)/2(∣0⟩+∣1⟩)/2​⊗(∣0⟩+∣1⟩)/2​=(∣00⟩+∣01⟩+∣10⟩+∣11⟩)/2, which is different.

    Explanation

    Linear maps cannot produce product states from superpositions unless the state is a basis state.

  37. 37

    Can standard basis states be cloned? Give an example.

    Model answer

    Yes, the CNOT gate copies computational basis states: CNOT(∣a⟩∣0⟩)=∣a⟩∣a⟩\text{CNOT}(|a\rangle|0\rangle) = |a\rangle|a\rangleCNOT(∣a⟩∣0⟩)=∣a⟩∣a⟩ for a=0,1a=0,1a=0,1.

    Explanation

    This does not violate no-cloning because it does not work for superpositions.

  38. 38

    What does it mean to perfectly discriminate two quantum states ∣ψ⟩|\psi\rangle∣ψ⟩ and ∣ϕ⟩|\phi\rangle∣ϕ⟩?

    Model answer

    There exists a quantum measurement (or unitary followed by measurement) that always correctly identifies which state was prepared, with probability 1.

    Explanation

    Perfect discrimination requires zero error.

  39. 39

    Show that if two states can be perfectly discriminated, they must be orthogonal.

    Model answer

    Assume there is a unitary UUU and a measurement that yields 000 for ∣ψ⟩|\psi\rangle∣ψ⟩ and 111 for ∣ϕ⟩|\phi\rangle∣ϕ⟩. Then U(∣ψ⟩∣0⟩)=∣0⟩∣a⟩U(|\psi\rangle|0\rangle) = |0\rangle|a\rangleU(∣ψ⟩∣0⟩)=∣0⟩∣a⟩ and U(∣ϕ⟩∣0⟩)=∣1⟩∣b⟩U(|\phi\rangle|0\rangle) = |1\rangle|b\rangleU(∣ϕ⟩∣0⟩)=∣1⟩∣b⟩. Taking inner products gives ⟨ψ∣ϕ⟩=0\langle\psi|\phi\rangle = 0⟨ψ∣ϕ⟩=0.

    Explanation

    The proof uses the unitarity of UUU and orthogonality of ∣0⟩|0\rangle∣0⟩ and ∣1⟩|1\rangle∣1⟩.

  40. 40

    Show that orthogonal states can always be perfectly discriminated.

    Model answer

    Construct a unitary UUU such that U∣ψ⟩=∣0⟩U|\psi\rangle = |0\rangleU∣ψ⟩=∣0⟩ and U∣ϕ⟩=∣1⟩U|\phi\rangle = |1\rangleU∣ϕ⟩=∣1⟩ (by extending to orthonormal basis). Then measure the first qubit; if outcome 0, state was ∣ψ⟩|\psi\rangle∣ψ⟩; if 1, state was ∣ϕ⟩|\phi\rangle∣ϕ⟩.

    Explanation

    A unitary transformation maps orthogonal states to computational basis states.

1 of 40
Question 1 of 40

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent