Skip to content

Commit

Permalink
Update katas/content/multi_qubit_measurements/index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SoniaLopezBravo authored Aug 19, 2024
1 parent f26533c commit 4761bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion katas/content/multi_qubit_measurements/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Now, let's see how you can use Q# to solve these two problems.
1. You start by preparing the state $\ket \psi$.
To do this, you can represent $\ket \psi$ as follows:
$$\frac 2 3 \ket{00} + \big( \frac 1 {\sqrt 5} \ket{0} + \frac 2 {\sqrt 5} \ket{1} \big) \frac {\sqrt 5} 3 \ket{1}$$
This representation tells you how we should rotate individual qubits.
This representation tells you how you should rotate individual qubits.
2. To figure out the measurement outcome probabilities in the computational basis, you can just use the `DumpMachine` function that lists probabilities associated with each basis state present in the superposition.
3. To figure out the measurement outcome probabilities in the Pauli X basis, you can apply a transformation that maps the two-qubit Pauli X basis into the two-qubit computational basis. This transformation just applies a Hadamard gate to each of the qubits.
4. View probabilities of each basis state with the `DumpMachine` function. Thanks to the previous step, the following state equivalence holds:
Expand Down

0 comments on commit 4761bed

Please sign in to comment.