Skip to content

Commit

Permalink
fix num op prod interaction documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Nov 2, 2023
1 parent f87d8ec commit 5e43c58
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/ffsim/gates/basic_gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,11 @@ def apply_num_op_prod_interaction(
.. math::
\text{NP}(\theta) =
\exp\left(i \theta \prod a^\dagger_{i, \sigma} a_{i, \sigma}\right)
\text{NP}(\theta, (S_\alpha, S_\beta)) =
\exp\left(i \theta
\prod_{p \in S_\alpha} a^\dagger_{\alpha, p} a_{\alpha, p}
\prod_{p \in S_\beta} a^\dagger_{\beta, p} a_{\beta, p}
\right)
Args:
vec: The state vector to be transformed.
Expand Down

0 comments on commit 5e43c58

Please sign in to comment.