Skip to content

Commit

Permalink
Adding ` to wrap the variable with _
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Pisal <[email protected]>
  • Loading branch information
sacpis committed Feb 5, 2025
1 parent 9c475a8 commit 74fae23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/sphinx/applications/python/hamiltonian_simulation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@
"source": [
"### 2. Hamiltonian Trotterization\n",
"\n",
"This function performs a single Trotter step for simulating a spin chain. If _use_XXYYZZ_gate is True, it constructs specific two-qubit gates using decomposition for exponentiation. It is a custom and efficient exponentiation combination of XX+YY+ZZ gates as a single operation. Otherwise, it uses a standrd CUDA-Q exp_pauli operation for the exponentiation of Pauli gates in Hamiltonian.\n",
"This function performs a single Trotter step for simulating a spin chain. If `_use_XXYYZZ_gate` is True, it constructs specific two-qubit gates using decomposition for exponentiation. It is a custom and efficient exponentiation combination of XX+YY+ZZ gates as a single operation. Otherwise, it uses a standrd CUDA-Q exp_pauli operation for the exponentiation of Pauli gates in Hamiltonian.\n",
"Input parameters:\n",
"- **state:** The current quantum state. \n",
"- **dt:** Time step for Trotter evolution. \n",
"- **Jx, Jy, Jz:** Coupling constants for the spin-spin interactions along the x, y, and z axes. \n",
"- **h_x, h_y, h_z:** Local magnetic field strengths (unused in the code provided). \n",
"- **_use_XXYYZZ_gate:** Flag to determine if custom XX+YY+ZZ gates should be used. \n",
"- **`_use_XXYYZZ_gate`:** Flag to determine if custom XX+YY+ZZ gates should be used. \n",
"- **coefficients:** Coefficients of Pauli terms for exponential evolution. \n",
"- **words:** Corresponding Pauli operators (e.g., X, Y, Z) for evolution. "
]
Expand Down Expand Up @@ -403,7 +403,7 @@
"source": [
"## Expectation value over time: \n",
"\n",
"Set up the simulation parameters, perform the time evolution, and vizualize results for expectation value over time."
"Set up the simulation parameters, perform the time evolution, and visualize results for expectation value over time."
]
},
{
Expand Down Expand Up @@ -473,7 +473,7 @@
"source": [
"## Additional information\n",
"\n",
"In the code above, we relied CUDA-Q expentiation of Pauli gates. If we needed to do it manually here is how it is done."
"In the code above, we relied on CUDA-Q expectation of Pauli gates. If we needed to do it manually here is how it is done."
]
},
{
Expand Down

0 comments on commit 74fae23

Please sign in to comment.