Skip to content

Commit 665d12d

Browse files
committed
Fix docstrings for PauliOp
1 parent 2643be6 commit 665d12d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fast_pauli/cpp/src/fast_pauli.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,10 +755,10 @@ dedupe : bool
755755
"int: The number of PauliString terms in PauliOp")
756756
.def_prop_ro(
757757
"coeffs", [](fp::PauliOp<float_type> const &self) { return self.coeffs; },
758-
"List[complex]: Ordered list of coefficients corresponding to Pauli strings")
758+
"List[complex]: The list of coefficients corresponding to Pauli strings")
759759
.def_prop_ro(
760760
"pauli_strings", [](fp::PauliOp<float_type> const &self) { return self.pauli_strings; },
761-
"List[PauliString]: Ordered list of PauliString objects in PauliOp")
761+
"List[PauliString]: The list of PauliString objects corresponding to coefficients in PauliOp")
762762
.def_prop_ro(
763763
"pauli_strings_as_str",
764764
[](fp::PauliOp<float_type> const &self) {
@@ -768,7 +768,7 @@ dedupe : bool
768768
[](fp::PauliString const &ps) { return fmt::format("{}", ps); });
769769
return strings;
770770
},
771-
"List[str]: Ordered list of Pauli Strings representations from PauliOp")
771+
"List[str]: The list of PauliString representations corresponding to coefficients in PauliOp")
772772

773773
// Methods
774774
.def(

0 commit comments

Comments
 (0)