Skip to content

Commit

Permalink
update intro notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Oct 19, 2023
1 parent a6f6439 commit 55851d2
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions docs/tutorials/01-introduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -52,18 +52,19 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from scipy.special import comb\n",
"\n",
"dim_a = comb(norb, n_alpha, exact=True)\n",
"dim_b = comb(norb, n_beta, exact=True)\n",
"dim = dim_a * dim_b\n",
"assert vec.shape == (dim,)\n",
"assert ffsim.dims(norb, nelec) == (dim_a, dim_b)\n",
"assert ffsim.dim(norb, nelec) == dim"
"dim_a, dim_b = ffsim.dims(norb, nelec)\n",
"dim = ffsim.dim(norb, nelec)\n",
"\n",
"assert dim_a == comb(norb, n_alpha, exact=True)\n",
"assert dim_b == comb(norb, n_beta, exact=True)\n",
"assert dim == dim_a * dim_b\n",
"assert vec.shape == (dim,)"
]
},
{
Expand All @@ -75,7 +76,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -106,7 +107,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
"version": "3.10.13"
},
"orig_nbformat": 4
},
Expand Down

0 comments on commit 55851d2

Please sign in to comment.