fixes quantum-register-type