Expected output: 001: 1.0 Expected output for 1024 shots: 001: 1024 The counting register reads 001 in displayed order q[0] q[1] q[2], which is integer 1. With three counting qubits, the phase estimate is: phi = 1 / 2^3 = 1/8 This matches the T gate eigenphase: T|1> = exp(2*pi*i/8)|1> The result is deterministic in the ideal circuit because phi = 1/8 is exactly representable with three bits of precision. For phases that are not exact multiples of 1/2^n, the output distribution spreads across nearby bit strings and peaks near the best n-bit approximation.