kickmix on Apple Silicon: a NEON build in a separate repo (not a PR, per your CLA policy)
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 15/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
- Área
- backend, performance
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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)
- Lenguaje dominante
- Python
- Estrellas
- 397
- Forks
- 127
- Merge medio
- 2 d 19 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de quantumlib/Qualtran
-
`show_bloq` not workingAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
quantumlib/Qualtran#2007 ·
Los mantenedores suelen responder en 3 días
-
Addition call_graph inconsistent with decomposition for registers with unequal bitsizesQuizá libre de nuevo @rupasri118 la tomó hace 56 días y no hay ningún pull request abierto. Abiertokind/bug-report
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
quantumlib/Qualtran#1818 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 75/100
quantumlib/Qualtran#2008 ·
Los mantenedores suelen responder en 3 días
-
kickmix: `Circuit.reaction_depth()` materialises every op (≈ 135–170 B/op transient), limiting verifiable circuit sizePosiblemente ocupada @manwithacat la tomó hace 27 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
quantumlib/Qualtran#1993 ·
Los mantenedores suelen responder en 3 días
-
Windows wheel (or source) for kickmix library needed for Kaggle quantum compilation challengeAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
quantumlib/Qualtran#1991 ·
Los mantenedores suelen responder en 3 días
Todos los issues de quantumlib/Qualtran
Issues similares
-
flaky: test_fire_returns_thread_per_http_entry_on_head waits 5 s per dispatch worker on busy shardsAbiertostatus/accepted type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
microsoft/apm#5309 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug vector-store
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
EverMind-AI/Raven#1413 ·
Los mantenedores suelen responder en 1 día
-
Tests: parallel pyinstallcheck runs oversubscribe the machine through nested TBB and BLAS poolsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
ACCESS-NRI/containerised-environments-infra#143 ·
Los mantenedores suelen responder en 2 días