Skip to content

Commit edf0672

Browse files
committed
add spaces to notebook
1 parent e33b38e commit edf0672

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/mzm_generation/tutorial.ipynb

+8
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@
165165
"\n",
166166
"All quantities of interest can be\n",
167167
"determined from the correlation matrix, which is defined as the block matrix\n",
168+
"\n",
168169
"$$\n",
169170
"\\begin{align}\n",
170171
" \\Gamma =\n",
@@ -174,7 +175,9 @@
174175
" \\end{pmatrix}\n",
175176
"\\end{align}\n",
176177
"$$\n",
178+
"\n",
177179
"where\n",
180+
"\n",
178181
"$$\n",
179182
"\\begin{align}\n",
180183
" T_{ij} &= \\langle a^\\dagger_i a_j \\rangle \\\\\n",
@@ -183,6 +186,7 @@
183186
"$$\n",
184187
"\n",
185188
"The correlation matrix is obtained by measuring the operators\n",
189+
"\n",
186190
"$$\n",
187191
"\\begin{align}\n",
188192
" a_j^\\dagger a_k + a_k^\\dagger a_j \\\\\n",
@@ -193,6 +197,7 @@
193197
"$$\n",
194198
"\n",
195199
"By using virtual fermionic swaps, only measurements between neighboring modes are needed. For neighboring modes, the Jordan-Wigner transformation of these operators is\n",
200+
"\n",
196201
"$$\n",
197202
" \\begin{align}\n",
198203
" a_j^\\dagger a_k + a_k^\\dagger a_j &\\mapsto \\frac{X_j X_k + Y_j Y_k}{2} \\\\\n",
@@ -201,7 +206,9 @@
201206
" -i(a_j^\\dagger a_k^\\dagger - a_k a_j) &\\mapsto \\frac{-X_j Y_k - Y_j X_k}{2}\n",
202207
" \\end{align}.\n",
203208
"$$\n",
209+
"\n",
204210
"While these operators can be measured straighforwardly by measuring the individual Pauli terms, we take a different approach. Because the fermionic Gaussian state has a fixed parity, we would like to perform the measurement in a way that does not disturb the parity. That way, we can be sure that any measured bitstrings with the incorrect parity must have resulted from an incorrect execution, so we can discard them as an error mitigation technique. These measurements can be accomplished using the two-qubit gates with the following matrices:\n",
211+
"\n",
205212
"$$\n",
206213
"U_1 =\n",
207214
"\\begin{pmatrix}\n",
@@ -235,6 +242,7 @@
235242
" \\frac{1}{\\sqrt{2}}i & 0 & 0 & \\frac{1}{\\sqrt{2}} \\\\\n",
236243
"\\end{pmatrix}\n",
237244
"$$\n",
245+
"\n",
238246
"These gates can be implemented using `XXPlusYYGate` and `XXMinusYYGate`.\n",
239247
"\n",
240248
"Once the state is prepared, the operators between neighboring modes can immediately be measured. This requires two separate circuits, one to measure the operator between pairs of qubits where the first qubit is even-indexed, and another circuit to measure pairs of qubits where the first qubit is odd-indexed. In order to measure operators between qubits that are not neighbors, a naive approach would use fermionic swap gates to permute the modes. However, the same effect can be achieved by permuting the transformation matrix used to construct the circuit, which amounts to a relabeling of the fermionic modes. This enables all the required operators to be measured using circuits with the same number of gates."

0 commit comments

Comments
 (0)