Quantum Computing Questions with Answers

32 practice questions on Quantum Computing (Emerging Tech) with answers and step-by-step solutions. Try 10 samples below, then practise all 32 free in the AptiNest app.

Sample questions

Question 1Easy

Which gate flips |0⟩ to |1⟩ and |1⟩ to |0⟩, like a classical NOT?

  1. Pauli-Z
  2. Pauli-X
  3. CNOT with no control
  4. Hadamard

Answer: B. Pauli-X

Explanation

X swaps the amplitudes of |0⟩ and |1⟩.

Step-by-step solution

  1. Pauli-X gate changes |0⟩ to |1⟩ and |1⟩ to |0⟩.
  2. It acts like a classical NOT gate in quantum computing.
  3. Other gates do not flip both states simultaneously.
  4. CNOT requires a control qubit and does not act alone.
  5. Hadamard creates superposition, not flips.
  6. Pauli-X is the correct answer.

Why the other options are wrong

  • A. Pauli-Z leaves |0⟩ unchanged and only flips the sign of |1⟩; it does not swap them.
  • C. CNOT needs a control qubit, so with no control it is not a single-qubit NOT gate.
  • D. Hadamard creates an equal superposition from |0⟩ rather than flipping it to |1⟩.

Tip: Remember: Pauli-X is the quantum equivalent of the classical NOT gate.

Question 2Easy

Lattice-based schemes are an important family in:

  1. Quantum error correction
  2. Post-quantum cryptography
  3. Blockchain consensus
  4. 5G network slicing

Answer: B. Post-quantum cryptography

Explanation

Problems such as learning with errors are believed hard for both classical and quantum computers.

Step-by-step solution

  1. Lattice-based schemes, such as learning with errors, belong to post-quantum cryptography.
  2. These problems are believed hard for both classical and quantum computers.
  3. The correct answer is option B, Post-quantum cryptography.

Why the other options are wrong

  • A. Quantum error correction is a different field.
  • C. Blockchain consensus does not use lattice schemes in this sense.
  • D. 5G network slicing is a networking term.

Tip: Lattice-based schemes are a post-quantum cryptography family.

Question 3Easy

Decoherence in a quantum computer refers to:

  1. The gates running faster than expected
  2. The computer's software becoming out of date
  3. Qubits being copied into classical memory whenever the program pauses to save its state
  4. Qubits losing their quantum state through interaction with the environment

Answer: D. Qubits losing their quantum state through interaction with the environment

Explanation

Noise from heat, vibration and stray fields destroys superposition, limiting how long computations can run.

Step-by-step solution

  1. Decoherence means qubits lose their quantum state.
  2. This happens through interaction with the environment, such as heat, vibration and stray fields.
  3. The correct answer is option D, qubits losing their quantum state through interaction with the environment.

Why the other options are wrong

  • A. Gate speed is not decoherence.
  • B. Software becoming out of date is unrelated to qubit state.
  • C. Copying qubits into classical memory is not decoherence.

Tip: Decoherence is the environment destroying superposition, which limits how long a computation can run.

Question 4Easy

Shor's algorithm is famous because it can efficiently:

  1. Factor large integers
  2. Sort a list of numbers
  3. Search the internet
  4. Compress video files

Answer: A. Factor large integers

Explanation

Efficient factoring (and discrete logarithms) would break RSA and elliptic-curve cryptography on a large enough quantum computer.

Step-by-step solution

  1. Shor's algorithm is a quantum algorithm for factoring large integers.
  2. Efficient factoring would break RSA and elliptic-curve cryptography on a large enough quantum computer.
  3. The correct answer is option A, Factor large integers.

Why the other options are wrong

  • B. Sorting a list is not what Shor's algorithm does.
  • C. Searching the internet is not the purpose of Shor's algorithm.
  • D. Compressing video is not the purpose of Shor's algorithm.

Tip: Shor is for factoring (and discrete logarithms); Grover is for search.

Question 5Medium

Can entanglement be used to send a message faster than light?

  1. Yes, but only when the qubits are kept close together
  2. Yes; measuring one qubit instantly writes a chosen bit into the far-away partner
  3. No, because entangled qubits cannot be separated at all
  4. No; outcomes are random until compared over a classical channel

Answer: D. No; outcomes are random until compared over a classical channel

Explanation

Correlations appear only when results are compared, which requires ordinary communication.

Step-by-step solution

  1. Entanglement links qubits but doesn't let you control their outcomes.
  2. Measuring one qubit gives random result, not a message.
  3. To know the result, you need to compare with the other qubit via classical channel.
  4. Classical communication can't be faster than light.
  5. So no message can be sent faster than light using entanglement.

Why the other options are wrong

  • A. Entanglement cannot send messages at any distance, so closeness does not make it usable for signalling.
  • B. Measuring one qubit does not write a chosen bit into the partner; the outcome is random.
  • C. Entangled qubits can be physically separated; the entanglement is not destroyed by distance alone.

Tip: No faster-than-light messaging with entanglement; need classical channel for info.

Question 6Medium

A CNOT gate acts on a control and a target qubit. What does it do?

  1. Flips the target only if the control is 1
  2. Measures both qubits and resets them to 0
  3. Flips the control only if the target is 1
  4. Swaps the two qubits' states every time

Answer: A. Flips the target only if the control is 1

Explanation

CNOT|10⟩ = |11⟩ and CNOT|00⟩ = |00⟩; with the control in superposition it creates entanglement.

Step-by-step solution

  1. CNOT gate flips target if control is 1.
  2. Control qubit stays unchanged.
  3. Target qubit flips only when control is 1.
  4. This matches option A exactly.
  5. Final answer: Flips the target only if the control is 1.

Why the other options are wrong

  • B. CNOT does not measure or reset qubits; it is a reversible gate that acts on states.
  • C. CNOT flips the target based on the control, never the control based on the target.
  • D. CNOT does not swap the states; the target changes only when the control is 1.

Question 7Medium

Applying a Hadamard gate to |0⟩ produces:

  1. An entangled pair of two separate qubits
  2. An equal superposition of |0⟩ and |1⟩
  3. The state |0⟩ again, with no change
  4. The state |1⟩ with certainty after the gate

Answer: B. An equal superposition of |0⟩ and |1⟩

Explanation

H|0⟩ = (|0⟩ + |1⟩)/√2, so each outcome has probability 1/2.

Step-by-step solution

  1. H maps |0> to (|0> + |1>)/sqrt2.
  2. That is an equal superposition.
  3. Measurement gives 0 or 1 with probability 1/2.

Why the other options are wrong

  • A. One qubit cannot be an entangled pair.
  • C. H changes the state.
  • D. The state is not |1>.

Tip: H|0> = equal superposition.

Question 8Medium

Quantum annealers are mainly designed for:

  1. Optimisation problems that seek low-energy solutions
  2. Transmitting data over fibre networks
  3. General-purpose gate-based algorithms such as Shor's factoring algorithm
  4. Storing large amounts of classical data

Answer: A. Optimisation problems that seek low-energy solutions

Explanation

Annealing evolves a system toward low-energy states that encode good solutions to optimisation problems.

Step-by-step solution

  1. Quantum annealers use quantum effects to find minimum energy states.
  2. Low-energy states represent optimal solutions to complex problems.
  3. Optimisation problems require finding the lowest possible energy configuration.
  4. This matches the purpose of quantum annealers.
  5. Final answer: Optimisation problems that seek low-energy solutions.

Why the other options are wrong

  • B. Fibre data transmission is networking, not what quantum annealers are built for.
  • C. Annealers are not gate-based machines; Shor's factoring is a gate-based algorithm.
  • D. Storing classical data is not a quantum annealer's purpose; annealers solve optimisation problems.

Question 9Hard

Grover's search over 1,000,000 unsorted items needs roughly (π/4)√N iterations. About how many is that?

  1. 500,000
  2. 785
  3. 20
  4. 1,000,000

Answer: B. 785

Explanation

√1,000,000 = 1,000; × π/4 ≈ 785. A classical search needs about 500,000 checks on average.

Step-by-step solution

  1. √1,000,000 = 1,000.
  2. 1,000 × π/4 ≈ 785.
  3. Π/4 is about 0.785.
  4. So 1,000 × 0.785 = 785.
  5. Answer is 785.

Why the other options are wrong

  • A. 500,000 is about half of N, not the square-root scale Grover's algorithm needs.
  • C. 20 is too small; the square root of a million is 1,000, and about 0.785 of that is 785.
  • D. 1,000,000 is N itself; Grover needs about the square root of N, times pi over 4.

Tip: Remember: √N × π/4 ≈ 0.785√N for Grover's search.

Question 10Hard

Quantum error correction detects errors without destroying the encoded information by:

  1. Measuring every data qubit directly after each gate
  2. Copying each qubit three times and taking a vote
  3. Cooling the processor until errors cannot happen
  4. Measuring parity checks (syndromes), not the data itself

Answer: D. Measuring parity checks (syndromes), not the data itself

Explanation

Syndrome measurements reveal which error occurred while leaving the logical state intact; direct copying is forbidden by no-cloning.

Step-by-step solution

  1. Syndrome measurements check for errors without touching the data.
  2. This preserves the encoded information during error detection.
  3. Direct measurement of qubits would destroy their quantum state.
  4. Parity checks identify errors through indirect means.
  5. This method avoids violating the no-cloning theorem.

Why the other options are wrong

  • A. Measuring every data qubit directly would destroy the encoded superposition, so it is not used.
  • B. Copying a quantum state three times breaks the no-cloning theorem; the code uses parity checks instead.
  • C. Cooling reduces noise but does not make errors impossible, so it is not error correction.

Tip: Use parity checks, not direct qubit measurement, for error detection in quantum systems.

Practise all 32 questions free

The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.

Open this topic in the app →

Related topics

See all Emerging Tech topics · All topics