Standard Library¶
The System Standard Library (microquantum.stdlib, Phase 117) is a
stable public layer of foundational, dependency-light building blocks shared
by user programs, the runtime and the compiler. It adds no application
behaviour and never duplicates APIs defined elsewhere in the SDK.
microquantum.stdlib.bits— MSB-first bitstring/integer conversions and Hamming distance/weight, matching the SDK’s measurement-bitstring convention.microquantum.stdlib.numbers— angle normalization (mod_2pi(),wrap_angle()) and modulo-2*pirotation comparisons.microquantum.stdlib.states— common state factories built onStateVector:basis_state(),uniform_superposition(),bell_state(),ghz_state()andw_state().
Every function is importable both from microquantum.stdlib and from the
top-level package (from microquantum import ghz_state).