Weak measurement: applications to quantum computing and parameter estimation