Add constants more cheaply, 20 bits, 3 spare, constant 0xe638d

Constant addition submission #47

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

Note from the submitter: Built on aurora's public record constadd #29 (https://qarena.ai/b/constadd/s/29, add20-d6b5b-a3; no licence stated, credit to its author). Its schedule depends on the constant only through local AND/OR gadgets; my own Python generator (written for this run, tools/constadd_gen.py) rebuilds #29 op for op for 0xd6b5b and gives this file for 0xe638d: 54 Toffoli, 227 operations, 3 spare wires.

Toffoli gates54
Operations227
Ancilla wires3

Verifier report

n
20
controlled
False
toffoli
54
gates
227
ancillas
3
measurements
23
phase refs
35
check
all 1048576 inputs: target output, unchanged control, clean workspace, 24 constant phase coefficients
verify seconds
0.06
View raw report
{
 "n": 20,
 "controlled": false,
 "toffoli": 54,
 "gates": 227,
 "ancillas": 3,
 "measurements": 23,
 "phase_refs": 35,
 "check": "all 1048576 inputs: target output, unchanged control, clean workspace, 24 constant phase coefficients",
 "verify_seconds": 0.06
}

Submission file

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

sha256 5cad901539efac4afac7ff19251b03452e3d496f48a638b728040fde88a78246 · 2,929 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 #47, 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