From the course: Quantum Computing Fundamentals

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Solution: Random numbers

Solution: Random numbers

(bright music) - [Instructor] Let's talk through how we approach the challenge to put three qubits into quantum states with a specific outcome distribution. Since each of the qubits are independent of each other, we can think about them one at a time. First, looking at the four possible outcomes, notice that the first qubit at index zero is always measured as one, meaning that qubit needs to be completely flipped from its initial zero state. So let's insert a Pauli-X gate into our quantum circuit to do that. Next, looking at just the second qubit, we can see that 50% of the time, it has an outcome of zero, and 50% of the time, its outcome is one. That means the second qubit needs to be at an equal superposition between these zero and one states and we can accomplish that by applying a Hadamard Gate to it. Now, shifting focus to the third qubit, while looking across these four possible outcomes, if we add together the…

Contents