Skip to content

Commit d496a3d

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/learn-pr (branch live)
2 parents 8e90a30 + 988b04a commit d496a3d

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

learn-pr/quantum/explore-entanglement/includes/3-create-entanglement-qsharp.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ Here's how it works:
4646
4747
1. Apply a CNOT operation to the qubit pair. Recall that the control qubit is in a superposition state and the target qubit is in the :::no-loc text="$\\ket{0_t}$"::: state.
4848

49-
<!-- no-loc -->
49+
<div class="notranslate">
5050
$$
51-
\\begin{aligned}
52-
CNOT \\frac{1}{\\sqrt{2}}(\\ket{0_c}+\\ket{1_c})\\ket{0_t} &= CNOT \\frac{1}{\\sqrt2}(\\ket{0_c 0_t}+\\ket{1_c 0_t})\\\\
53-
&= \\frac{1}{\\sqrt2}(CNOT \\ket{0_c 0_t} + CNOT \\ket{1_c 0_t})\\\\
54-
&= \\frac{1}{\\sqrt2}(\\ket{0_c 0_t}+\\ket{1_c 1_t})
55-
\\end{aligned}
51+
\begin{aligned}
52+
CNOT \frac{1}{\sqrt{2}}(\ket{0_c}+\ket{1_c})\ket{0_t} &= CNOT \frac{1}{\sqrt2}(\ket{0_c 0_t}+\ket{1_c 0_t})\\
53+
&= \frac{1}{\sqrt2}(CNOT \ket{0_c 0_t} + CNOT \ket{1_c 0_t})\\
54+
&= \frac{1}{\sqrt2}(\ket{0_c 0_t}+\ket{1_c 1_t})
55+
\end{aligned}
5656
$$
57-
<!-- /no-loc -->
57+
</div>
5858

5959
The state :::no-loc text="$\\frac{1}{\\sqrt2}(\\ket{0_c 0_t}+\\ket{1_c 1_t})$"::: is entangled. This particular entangled state is one of the four Bell states, :::no-loc text="$\\ket{\\phi^{+}}$":::.
6060

@@ -196,15 +196,15 @@ Here's how to create the :::no-loc text="$\\ket{\\phi^-}$"::: state:
196196
197197
1. Apply the CNOT operation to the control qubit and the target qubit, which is in the :::no-loc text="$\\ket{0_t}$"::: state.
198198
199-
<!-- no-loc -->
199+
<div class="notranslate">
200200
$$
201-
\\begin{aligned}
202-
CNOT \\frac{1}{\\sqrt{2}}(\\ket{0_c}-\\ket{1_c})\\ket{0_t} &= CNOT \\frac{1}{\\sqrt2}(\\ket{0_c 0_t}-\\ket{1_c 0_t})\\\\
203-
&= \\frac{1}{\\sqrt2}(CNOT \\ket{0_c 0_t} - CNOT \\ket{1_c 0_t})\\\\
204-
&= \\frac{1}{\\sqrt2}(\\ket{0_c 0_t}-\\ket{1_c 1_t})
205-
\\end{aligned}
201+
\begin{aligned}
202+
CNOT \frac{1}{\sqrt{2}}(\ket{0_c}-\ket{1_c})\ket{0_t} &= CNOT \frac{1}{\sqrt2}(\ket{0_c 0_t}-\ket{1_c 0_t})\\
203+
&= \frac{1}{\sqrt2}(CNOT \ket{0_c 0_t} - CNOT \ket{1_c 0_t})\\
204+
&= \frac{1}{\sqrt2}(\ket{0_c 0_t}-\ket{1_c 1_t})
205+
\end{aligned}
206206
$$
207-
<!-- /no-loc -->
207+
</div>
208208
209209
To create the :::no-loc text="$\\ket{\\phi^-}$"::: Bell state in Q#, replace the code in the your **Main.qs** with the following code:
210210

0 commit comments

Comments
 (0)