Skip to content

Commit

Permalink
docs: add missing type hints to operator attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrossinek committed Sep 4, 2023
1 parent 1dd1cdd commit 75ad958
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions qiskit_nature/second_q/operators/bosonic_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ class BosonicOp(SparseLabelOp):
pairs describing the terms contained in the operator.
Attributes:
num_modes: the number of modes on which this operator acts. This is
considered a lower bound, which means that mathematical operations acting on two or more
operators will result in a new operator with the maximum number of modes of any
of the involved operators.
num_modes (int | None): the number of modes on which this operator acts. This is considered
a lower bound, which means that mathematical operations acting on two or more operators
will result in a new operator with the maximum number of modes of any of the involved
operators.
.. note::
Expand Down
8 changes: 4 additions & 4 deletions qiskit_nature/second_q/operators/fermionic_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ class FermionicOp(SparseLabelOp):
pairs describing the terms contained in the operator.
Attributes:
num_spin_orbitals: the number of spin orbitals on which this operator acts. This is
considered a lower bound, which means that mathematical operations acting on two or more
operators will result in a new operator with the maximum number of spin orbitals of any
of the involved operators.
num_spin_orbitals (int | None): the number of spin orbitals on which this operator acts.
This is considered a lower bound, which means that mathematical operations acting on two
or more operators will result in a new operator with the maximum number of spin orbitals
of any of the involved operators.
.. note::
Expand Down

0 comments on commit 75ad958

Please sign in to comment.