I can create the ket for |15>
QuantumState[{"Register", 8, 15}]
but how do I do the reverse, get 15 from the QuantumState |00001111},