Skip to content

Commit

Permalink
docs: orbital rotation is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Apr 29, 2024
1 parent 51bcf86 commit a2d30e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions python/ffsim/qiskit/slater_determinant.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ def __init__(
This is a pair of lists of integers, where the first list specifies the
spin alpha orbitals and the second list specifies the spin beta
orbitals.
orbital_rotation: The orbital rotation. You can pass either a single Numpy
array specifying the orbital rotation to apply to both spin sectors, or
you can pass a pair of Numpy arrays to specify independent orbital
rotations for spin alpha and spin beta.
orbital_rotation: The optional orbital rotation. You can pass either a
single Numpy array specifying the orbital rotation to apply to both
spin sectors, or you can pass a pair of Numpy arrays to specify
independent orbital rotations for spin alpha and spin beta.
label: The label of the gate.
validate: Whether to validate the inputs.
rtol: Relative numerical tolerance for input validation.
Expand Down
16 changes: 8 additions & 8 deletions python/ffsim/states/states.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ def slater_determinant(
This is a pair of lists of integers, where the first list specifies the
spin alpha orbitals and the second list specifies the spin beta
orbitals.
orbital_rotation: The orbital rotation. You can pass either a single Numpy
array specifying the orbital rotation to apply to both spin sectors, or
you can pass a pair of Numpy arrays to specify independent orbital
rotations for spin alpha and spin beta.
orbital_rotation: The optional orbital rotation. You can pass either a
single Numpy array specifying the orbital rotation to apply to both
spin sectors, or you can pass a pair of Numpy arrays to specify
independent orbital rotations for spin alpha and spin beta.
Returns:
The Slater determinant as a statevector.
Expand Down Expand Up @@ -178,10 +178,10 @@ def slater_determinant_rdm(
This is a pair of lists of integers, where the first list specifies the
spin alpha orbitals and the second list specifies the spin beta
orbitals.
orbital_rotation: The orbital rotation. You can pass either a single Numpy
array specifying the orbital rotation to apply to both spin sectors, or
you can pass a pair of Numpy arrays to specify independent orbital
rotations for spin alpha and spin beta.
orbital_rotation: The optional orbital rotation. You can pass either a
single Numpy array specifying the orbital rotation to apply to both
spin sectors, or you can pass a pair of Numpy arrays to specify
independent orbital rotations for spin alpha and spin beta.
rank: The rank of the reduced density matrix. I.e., rank 1 corresponds to the
one-particle RDM, rank 2 corresponds to the 2-particle RDM, etc.
spin_summed: Whether to sum over the spin index.
Expand Down

0 comments on commit a2d30e9

Please sign in to comment.