kickmix on Apple Silicon: a NEON build in a separate repo (not a PR, per your CLA policy)
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 15/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Active
- Domain
- backend, performance
Research direction
The report points to kickmix-macos and describes proposed NEON additions under simd/, dispatch in simd.h, and test and benchmark instantiations. Read the linked repository and its patch as reference; there is no upstream change requested or defined as done. The report also flags a macOS 26 sanitizer startup hang and a working setup.py build path.
Written by the indexing model from the issue text.
Description
Hi all,
First, thanks for kickmix and for the Kaggle competition. The verifier design
(seeded fuzz testing of kickmix circuits) is what made the competition workable
for people like me who are not quantum specialists.
I want to flag something I built, and I want to be upfront about why it is not a
pull request. Your CONTRIBUTING.md says AI-generated code does not qualify as a
contributor's original creation under the CLA. The code below was written with an
AI coding assistant working under my direction, so I have not offered it upstream
and I am not asking you to take it. It exists, it is Apache-2.0, and if any of it
is useful as a reference or a spec for someone to implement independently, that
would be great.
What it is: https://github.com/manwithacat/kickmix-macos
- The
kickmix/directory from yourmainat638777fa, unchanged except for an
overlay that addssimd/b128_neon.handsimd/b256_neon.h(AArch64 NEON word
types with the same interface asb128_sse/b256_avx), the dispatch in
simd.hbehind aKICKMIX_DISABLE_NEONopt-out, and the corresponding
TEST_EACH_SIZE_W/BENCHMARK_EACH_SIZE_Winstantiations. The whole change is
one patch file; modified files are listed in the NOTICE as the license asks. - Motivation: on Apple Silicon kickmix currently runs the scalar polyfill for
b256, which is what the PythonSimulatoruses. The competition's shipped
kickmix.sois x86-64 Linux only, so Mac users had no native verifier at all.
What we measured (10-core Apple Silicon, macOS 26, Apple clang 17, CPython 3.13):
- Your Python suite: 3,403 passed. Your C++
simd, ChaCha and popcount suites
compiled directly with googletest: 174 passed, 58 of them the NEON instantiations.
Simulation transcripts are bit-identical between the NEON and portable builds. - The three competition verifiers reproduce their hosted Kaggle results to the
last digit on the reference circuits, including DQI's sampled mean Toffoli count,
so the seeded ChaCha sampling matches your Bazel-built binary. - Throughput on the competition reference circuits: invsqrt 29.4 → 56.0 G
gate-shots/s (1.90×), DQI 71.8 → 83.1 (1.16×). On a random-gate synthetic circuit
there is no gain (clang already vectorizes the polyfill well there), so the win is
specific to structured circuits.
Two things that may be useful to you regardless of the NEON code:
bazel test kickmix:kickmix_testhangs before any output on macOS 26 with Apple
clang 17. Asampletrace shows AddressSanitizer's own start-up
(AsanInitInternal → InitializeShadowMemory → StaticSpinMutex::LockSlow)
deadlocking. Your macOS CI runners are fine, so this looks toolchain-specific,
but it is worth knowing if you get reports from people on the newest macOS.
--copt=-fno-sanitize=all --linkopt=-fno-sanitize=allis not a clean
workaround either; the test target then fails to link aGF2Fieldconstructor.- Apple clang 17 builds the current
setup.pypath with zero errors (11 warnings,
mostly-Wpessimizing-move), so thepip install ./kickmixroute works on macOS
without Homebrew LLVM now.
No action needed. If you would rather I did not keep a vendored copy public, or
you would like it renamed or described differently, say so and I will do it.
Thanks again,
James (manwithacat)
- Dominant language
- Python
- Stars
- 397
- Forks
- 127
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from quantumlib/Qualtran
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
quantumlib/Qualtran#2007 ·
-
Addition call_graph inconsistent with decomposition for registers with unequal bitsizesMay be free again @rupasri118 claimed this 67 days ago, and no pull request is open. Openkind/bug-report
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
quantumlib/Qualtran#1818 · 2 comments ·
-
`ReflectionUsingPrepare.adjoint()` returns `self` for non-real `global_phase`Possibly taken @doubleMcyber claimed this 9 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
quantumlib/Qualtran#2009 ·
-
Classical simulation fails for a QROAM with block size 1 on one axis: 0-bit `BQUInt` breaks `Partition`Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 75/100
quantumlib/Qualtran#2008 ·
-
kickmix: `Circuit.reaction_depth()` materialises every op (≈ 135–170 B/op transient), limiting verifiable circuit sizePossibly taken @manwithacat claimed this 38 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 52/100
quantumlib/Qualtran#1993 ·
All issues in quantumlib/Qualtran
Similar issues
-
auto-reported bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
stix-atlas.json: the same relationship id is used for several different mitigates relationshipsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
backend bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
nolte/kamerplanter#3193 ·
Maintainers usually reply within 1 day
-
soup prune-prompt exits 1 after writing its output on a file over 100,000 rows, and reports a capped row count otherwisePossibly taken @abdulwaarith0 claimed this today. Openneeds-triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
MakazhanAlpamys/Soup#3690 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day