Canceling noise to improve quantum devices