quantum-meter: wai-quantum's RunMeter over this process's CPU and GPU counters #232
Loading…
Reference in a new issue
No description provided.
Delete branch "wai/quantum-run-meter"
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?
What
wai-quantumdefinesRunMeterand ships no implementation, because a meter belongs with the energy source it reads. This PR adds one:wai/tools/quantum-meter, a crate of its own besidequantum-wgsl-check, so the energy counters never compile inwai-quantum's own builds.The meter
jouleclaw-energy's span meter:OnChipCounter, with filtering unknown.A window gets no figure, and never an estimate, when:
The declared uncertainty adds three terms:
--counter-ppm). The platform publishes none, so there is no default.Calibration
The fabric's own calibrations open one window per corpus circuit. A corpus circuit runs for microseconds, so this meter refuses every such window.
span_of_runsis the calibration it supports: one window around as many runs of a circuit as fill a stated time, giving one reading over all their operations, whichEnergyCalibration::addtakes as it takes a single run's.Measured (M4 Max, macOS 27.0.1)
With both figures in hand, the fabric placed the 20-qubit circuit on the GPU member.
On the Linux host, where no per-process counter exists, every window came out unmetered, as it should.
One limit belongs to the fabric, not this meter: a figure is whole nanojoules per operation, rounded up, so at 4 nJ/op the rounding alone adds up to 25% to the declared uncertainty.
CI
jouleclaw-energycrates it reads.🤖 Generated with Claude Code