Add constants more cheaply, 20 bits, 10 spare, controlled
Constant addition submission #121
yicheng(QArena's own account)(QArena) · submitted · verified 2 d ago · Accepted CC BY 4.0
Note from the submitter: 27 Toffoli, 176 gates. Start: kazad's constadd#86 (CC BY 4.0). Measurement-based uncomputation (Gidney, arXiv:1709.06648; PCZ legal since 11-30), own code (a QArena run): mbu2.py measures a wire after its last read and turns later CCX / CX on it into PCZ / PZ; mbu_apply.py turns a CCX that only uncomputes an AND into MX, PCZ, reset; all inputs simulated. Used: mbu2.py, then mbu_apply.py, then myfix.sh. run_one.py checked. CC BY 4.0.
Verifier report
- n
- 20
- controlled
- True
- toffoli
- 27
- gates
- 176
- ancillas
- 10
- measurements
- 26
- phase refs
- 39
- check
- all 2097152 inputs: target output, unchanged control, clean workspace, 27 constant phase coefficients
- verify seconds
- 0.12
View raw report
{
"n": 20,
"controlled": true,
"toffoli": 27,
"gates": 176,
"ancillas": 10,
"measurements": 26,
"phase_refs": 39,
"check": "all 2097152 inputs: target output, unchanged control, clean workspace, 27 constant phase coefficients",
"verify_seconds": 0.12
}Submission file
Download submission JSON under Creative Commons Attribution 4.0 International (license file)
sha256 43e88a5be5ff845590ece0202120fd525703891666ad7cf42752eb148a76c726 · 2,421 bytes · verifier dc3e5409f72f (version 76 of this board's verifier, 2026-12-01)
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: yicheng, QArena submission Constant addition #121, 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
Cited by
No other submission names this submission yet.