In this patch-series I improve some annoyances in the second-quantization
module.
- Make substitute_dummies() more flexible and controllable w.r.t. output
- substitute_dummies should also accept single term expressions.
- Fixed doctests and improved documentation of _substitute() in secondquant.
---
sympy/physics/secondquant.py | 25 +
1 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/sympy/physics/secondquant.py b/sympy/physics/secondquant.py
index edc9987..687bf9d 100644
--- a/sympy/physics/secondquant.py
+++ b/sympy/physics/secondquant.py
@@ -23
---
sympy/physics/secondquant.py |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sympy/physics/secondquant.py b/sympy/physics/secondquant.py
index 687bf9d..b7ae493 100644
--- a/sympy/physics/secondquant.py
+++ b/sympy/physics/secondquant.py
@@ -2269,8 +2269,8 @@ def _so
The keyword pretty_indices used to be boolean, but is now a dict of lists
containing letters to label the new dummy indices. This allows the user much
better control over the resulting expression.
Docstring and doctests updated accordingly.
---
sympy/physics/secondquant.py | 104 +++
renamed the iterator '_reverse' to 'arg_iterator' for clarity
---
sympy/physics/secondquant.py | 23 ++-
1 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/sympy/physics/secondquant.py b/sympy/physics/secondquant.py
index b7ae493..93f9ca3 100644
--- a/sympy/phys
---
sympy/physics/secondquant.py | 29 -
1 files changed, 20 insertions(+), 9 deletions(-)
diff --git a/sympy/physics/secondquant.py b/sympy/physics/secondquant.py
index 93f9ca3..858c222 100644
--- a/sympy/physics/secondquant.py
+++ b/sympy/physics/secondquant.py
@@
---
sympy/physics/secondquant.py |6 --
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/sympy/physics/secondquant.py b/sympy/physics/secondquant.py
index 858c222..6a5fa60 100644
--- a/sympy/physics/secondquant.py
+++ b/sympy/physics/secondquant.py
@@ -2666,8 +2666,10 @@ def
The keyword pretty_indices used to be boolean, but is now a dict of lists
containing letters to label the new dummy indices. This allows the user much
better control over the resulting expression.
Docstring and doctests updated accordingly.
---
sympy/physics/secondquant.py | 104 +++