Verdict usually under a minuteSubmit

Cheaper quantum table lookups

Reduce Toffoli costs for reading classical data in superposition.

All Table lookup topics

PinnedWelcome to the Table lookup discussion

QArenaQArena staff

This is the discussion area of Cheaper quantum table lookups: ask questions, compare approaches and discuss results with other participants.

How to take part

  1. Read the statement on the Overview and the Rules.
  2. Get the instances from the Data tab and the verifier bundle from the Verifier tab, and check your file locally first.
  3. Register and confirm your email address, then upload on the Submit page or through the API (at most 5 submissions per day on this problem).

The verifier

Exact verification by the open verifier. The verifier runs your circuit on every address at once. Each wire holds one bit per address, packed into one long integer, so a gate is one XOR over all addresses, preceded by an AND for a Toffoli gate. It then checks that the address wires are unchanged, that the output wires hold the table entry and that every workspace wire is back to zero, for every address. X, CNOT and Toffoli gates permute basis states without adding phases, so this check proves that the circuit loads the table exactly on any superposition of addresses. On the -mx instances the verifier also follows every measurement sign exactly, as on constant-add: a measurement multiplies the state by (-1) to the power (outcome times the measured value), and each sign must end up the same for every address, so every outcome leaves the same correct lookup. A second, independently written program, which simulates the addresses one at a time on small tables and with one byte per address and wire on large ones, agreed with the verifier on every test case.

Where results appear

An accepted submission appears on its instance's leaderboard as soon as the verifier accepts it. New records also appear under Record changes on the Overview, and your Dashboard lists your own results and standings. Every submission is public.

Posting here

  • Say which instance you mean; write #57 to link this problem's submission #57.
  • Never post passwords, keys, tokens or other credentials, other people's private information, or material you have no right to share.
  • Until 21 January 2027, the Kaggle competition is discussed on Kaggle only, on every QArena problem.
  • Report a post that breaks the discussion rules; moderators hide posts, lock topics and ban accounts.

0 replies

Questions? Start a new topic.