Calculating the Posterior
Learn how we can calculate the posterior.
We'll cover the following...
We'll cover the following...
Calculating the posterior for prior > 0.5
Up until line 12, there’s nothing new. The important part is line 16.
We apply a controlled -gate. Thus, we only change states where qubit 1 is 1. This is the case for the state , which represents ...