Skip to content

Commit

Permalink
Fix docstrings for PauliOp
Browse files Browse the repository at this point in the history
  • Loading branch information
stand-by committed Dec 17, 2024
1 parent 2643be6 commit 665d12d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fast_pauli/cpp/src/fast_pauli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,10 +755,10 @@ dedupe : bool
"int: The number of PauliString terms in PauliOp")
.def_prop_ro(
"coeffs", [](fp::PauliOp<float_type> const &self) { return self.coeffs; },
"List[complex]: Ordered list of coefficients corresponding to Pauli strings")
"List[complex]: The list of coefficients corresponding to Pauli strings")
.def_prop_ro(
"pauli_strings", [](fp::PauliOp<float_type> const &self) { return self.pauli_strings; },
"List[PauliString]: Ordered list of PauliString objects in PauliOp")
"List[PauliString]: The list of PauliString objects corresponding to coefficients in PauliOp")
.def_prop_ro(
"pauli_strings_as_str",
[](fp::PauliOp<float_type> const &self) {
Expand All @@ -768,7 +768,7 @@ dedupe : bool
[](fp::PauliString const &ps) { return fmt::format("{}", ps); });
return strings;
},
"List[str]: Ordered list of Pauli Strings representations from PauliOp")
"List[str]: The list of PauliString representations corresponding to coefficients in PauliOp")

// Methods
.def(
Expand Down

0 comments on commit 665d12d

Please sign in to comment.