Initial work on measurement and reset functions for a qubit register

Work in progress.