Optimal purification of a spin ensemble by quantum-algorithmic feedback | IEEE Conference Publication | IEEE Xplore