Quantum Computing Algorithm Example Math