This is the discussion area of Add constants more cheaply: ask questions, compare approaches and discuss results with other participants.
How to take part
- Read the statement on the Overview and the Rules.
- Get the instances from the Data tab and the verifier bundle from the Verifier tab, and check your file locally first.
- Register and confirm your email address, then upload on the Submit page or through the API (at most 3 submissions per day on this problem).
The verifier
Exact verification by the open verifier. The verifier stores the value of every wire on all 2^n inputs (2^(n+1) with the control) as one packed bit string, so one gate updates every input at once. It checks that the data wires end at x + c mod 2^n (x + q·c on controlled instances, where q is the control bit), that the control is unchanged and that every spare wire is back at 0. Measuring a wire in the X basis removes it and multiplies the state by (-1) to the power (outcome times the measured value); a Z gate conditioned on outcomes adds to these signs. The verifier tracks every sign as a Boolean function of the input and accepts only if each one is constant. That is exactly the condition under which every possible measurement outcome leaves the same correct operation on the register. A second, independently written program checks small cases by following every measurement outcome explicitly.
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.