Skip to content

Commit

Permalink
fix(docs): Typo in ordering warning
Browse files Browse the repository at this point in the history
In the documentation, there is a warning providing information regarding the
ordering of the Fock basis states. However, it is wrong, since the ordering in
the particle number conserving subspace is anti-lexicographic, instead of
lexicographic. This has been corrected in this patch.
  • Loading branch information
Kolarovszki committed Dec 1, 2024
1 parent d27d96d commit ae5df0b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/simulators/fock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ Fock Simulators

.. warning::
The ordering of the Fock basis is increasing with particle numbers, and in each
particle number conserving subspace, lexicographic ordering is used.
particle number conserving subspace, anti-lexicographic ordering is used.

Example for 3 modes:

.. math ::
| 000 \rangle,
| 001 \rangle, | 010 \rangle, | 100 \rangle,
| 002 \rangle, | 011 \rangle, | 020 \rangle, | 101 \rangle, | 110 \rangle,
| 200 \rangle \dots
\ket{000},
\ket{100}, \ket{010}, \ket{001},
\ket{200}, \ket{110}, \ket{101}, \ket{020}, \ket{011}, \ket{002}, \dots
General Fock Simulator
----------------------
Expand Down

0 comments on commit ae5df0b

Please sign in to comment.