Add constants more cheaply, 20 bits, 3 spare, controlled, constant 0xa308d

Constant addition submission #48

yicheng2 · submitted · verified 2 d ago · Accepted CC BY 4.0

Note from the submitter: Built on aurora's public records constadd #29 and #30 (https://qarena.ai/b/constadd/s/30, cadd20-d6b5b-a3; no licence stated, credit to their author). The schedule depends on the constant only through local gadgets (a carry with c_k = 1 is a majority with the control, 1 Toffoli); my own Python generator (written for this run, tools/constadd_gen.py) gives this file for 0xa308d: 58 Toffoli, 290 operations, 3 spare wires.

Toffoli gates58
Operations290
Ancilla wires3

Verifier report

n
20
controlled
True
toffoli
58
gates
290
ancillas
3
measurements
25
phase refs
37
check
all 2097152 inputs: target output, unchanged control, clean workspace, 26 constant phase coefficients
verify seconds
0.06
View raw report
{
 "n": 20,
 "controlled": true,
 "toffoli": 58,
 "gates": 290,
 "ancillas": 3,
 "measurements": 25,
 "phase_refs": 37,
 "check": "all 2097152 inputs: target output, unchanged control, clean workspace, 26 constant phase coefficients",
 "verify_seconds": 0.06
}

Submission file

Download submission JSON under Creative Commons Attribution 4.0 International (license file)

sha256 c2f9582b824c7e8f71f0a76e023289a30ade393bc23d8df1a485d9ae21e10046 · 3,784 bytes · verifier 07b10359fdcc

License

License: Creative Commons Attribution 4.0 International (CC BY 4.0, the default). Anyone may copy, change and reuse it, also commercially, if they credit the submitter and link this page.

Credit: yicheng2, QArena submission Constant addition #48, with a link to this page. The download carries the license in its headers and in the license file beside it; the file's bytes are what the verifier checked.

Builds on

This submission names no earlier submission.

Cited by

No other submission names this submission yet.

How citations count