Skip to content

Commit 44ef7f4

Browse files
modified error threshold for the charge and spin
1 parent 1508613 commit 44ef7f4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

applications/physical_systems/fermi_hubbard_model_1D/fermi_hubbard_1D.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@
17251725
},
17261726
{
17271727
"cell_type": "code",
1728-
"execution_count": 40,
1728+
"execution_count": null,
17291729
"id": "84",
17301730
"metadata": {},
17311731
"outputs": [
@@ -1750,8 +1750,8 @@
17501750
"spin_error = np.max(np.abs(spin_density_vh - initial_spin_vh[:, None]))\n",
17511751
"print(f\"Max charge density deviation from exact: {charge_error:.2e}\")\n",
17521752
"print(f\"Max spin density deviation from exact: {spin_error:.2e}\")\n",
1753-
"assert charge_error < 0.1, f\"Charge density deviation too large: {charge_error}\"\n",
1754-
"assert spin_error < 0.1, f\"Spin density deviation too large: {spin_error}\""
1753+
"assert charge_error < 0.2, f\"Charge density deviation too large: {charge_error}\"\n",
1754+
"assert spin_error < 0.2, f\"Spin density deviation too large: {spin_error}\""
17551755
]
17561756
},
17571757
{

0 commit comments

Comments
 (0)