Learning about the foundational oracle-based quantum algorithm