wai-quantum-serve 0.5.1: limits a request cannot pass, and a body is read whole or refused #235
Loading…
Reference in a new issue
No description provided.
Delete branch "wai/quantum-serve-limits"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Before the component goes online, a request needs bounds it cannot pass. The algorithm library's circuits are small, because its builders clamp to 12 qubits. A caller's own OpenQASM is not: it could name 26 qubits (a 1 GiB statevector) and any number of gates, and
/receipttook any number of shots.There was also a bug: a POST body was cut at 4 MiB, and the cut text was parsed as if it were the whole request.
Change (0.5.1)
topabove 1024GET /now states the limits. The module docs say a host should bound the component as well: time per request, memory per instance, and instances at once.Checked
Native:
cargo test --locked --lib, 10 of 10, including four new tests, one for each limit and one for the listing.Served by
wasmtime serve49.0.1 on the build Mac with-W timeout=10s,max-memory-size=256MiBand a pooling allocator of 8 memories:🤖 Generated with Claude Code