kickmix: Simulator memory is ~3x the circuit per instance; the Kaggle dqi metric runs out of memory on large circuits with no documented limit
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- performance
Hướng nghiên cứu
Start with verify_submission_dqi.py, especially read_circuit and the worker/batch simulation flow described in the issue; reproduce the memory growth with the provided script and a large .kmb circuit. The issue proposes documenting or checking a resource limit, reducing simulator memory, or lowering worker counts. Done means large circuits no longer fail without a clear participant-visible explanation, or memory use is reduced enough to score them.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
Kaggle "Google Quantum AI - Verifiable Quantum Circuit Compilation", Benchmark II (dqi) verifier
(verify_submission_dqi.py), kickmix built from Qualtran at 638777f.
What happened
- A circuit that passes the dqi verifier locally (102,400 shots, status
PASS) was rejected by the Kaggle metric with
error_description: "Out of memory". It is a 3.31 GB.kmbwith 363.4M operations and 101,440 bits. - A 1.14 GiB circuit (130.5M operations, 75,683 bits) scores normally.
- The failed submission used one of the five daily slots. Nothing in the metric rejects the circuit early, and the competition
documents no operation-count or file-size limit.
Measurement
macOS arm64, official verifier, max_workers=1, one 256-shot batch, peak RSS (resource.getrusage):
| Circuit | Ops | RSS after Circuit.from_file |
Peak RSS while simulating |
|---|---|---|---|
| scores on Kaggle | 130.5M | 1.15 GB | 4.62 GB |
| out of memory on Kaggle | 363.4M | 3.12 GB | 11.74 GB |
Each km.Simulator(...).do(circuit) adds about 2.8-3x the loaded circuit's size.
The verifier creates a fresh km.Simulator for every 256-shot batch inside each forked worker, with
workers = min(cpus, DEFAULT_MAX_WORKERS=4). Total memory is therefore about load + 4 x (peak - load): about 15 GB for the
first circuit and about 37.6 GB for the second.
The metric notebook already caps memory growth through MAX_QUBIT_OR_BIT_ID, but nothing bounds memory driven by operation
count, so the limit can only be discovered through a failed submission.
Requests
- Document the effective limit (memory of the scoring machine, or a maximum operation count or file size), or check it in
read_circuitand raise a clearParticipantVisibleErrorbefore simulating. - Lower the Simulator's per-instance footprint: execute the circuit as a stream instead of expanding it in full, or share the
expanded form across batches and forked workers. - Optionally, reduce the worker count for very large circuits so they degrade to slower scoring instead of failing.
Reproduction
import sys, resource
sys.path.insert(0, 'path/to/verifiers')
import kickmix as km
from dqi import verify_submission_dqi as DV
c = km.Circuit.from_file(sys.argv[1], format='kmb')
print('after load GB', resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 2**30) # bytes on macOS, KB on Linux
try:
DV.verify(c, DV.ProblemSpecDQI.benchmark_instance(num_shots=256), salt='memprobe', max_workers=1)
except AssertionError:
pass # 256 shots are too few for the error-rate assertion; the simulation itself ran
print('peak GB', resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 2**30)
- Ngôn ngữ chính
- Python
- Star
- 397
- Fork
- 127
- Merge trung bình
- 2 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của quantumlib/Qualtran
-
`show_bloq` not workingĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
quantumlib/Qualtran#2007 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Addition call_graph inconsistent with decomposition for registers with unequal bitsizesCó thể làm lại được @rupasri118 đã nhận 56 ngày trước và không có pull request nào đang mở. Đang mởkind/bug-report
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
quantumlib/Qualtran#1818 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 75/100
quantumlib/Qualtran#2008 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
kickmix: `Circuit.reaction_depth()` materialises every op (≈ 135–170 B/op transient), limiting verifiable circuit sizeCó thể đã có người làm @manwithacat đã nhận 27 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
quantumlib/Qualtran#1993 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Windows wheel (or source) for kickmix library needed for Kaggle quantum compilation challengeĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
quantumlib/Qualtran#1991 ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của quantumlib/Qualtran
Issue tương tự
-
flaky: test_fire_returns_thread_per_http_entry_on_head waits 5 s per dispatch worker on busy shardsĐang mởstatus/accepted type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
microsoft/apm#5309 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug vector-store
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
EverMind-AI/Raven#1413 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Tests: parallel pyinstallcheck runs oversubscribe the machine through nested TBB and BLAS poolsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
ACCESS-NRI/containerised-environments-infra#143 ·
Maintainer thường phản hồi trong vòng 2 ngày