Log Message: Fix a bug in quantum_measure() that returns the wrong state when measuring a quantum register.