In the event you want to do code generation for Indexed Objects, you might want to look at this pull request,

https://github.com/sympy/sympy/pull/7347

which has been improving CSE with them. It needs fixing merge conflicts, but it looks like it might be useful.

Cheers,

Tim.

On 16 Mar 2015, at 16:02, j.gonthie...@gmail.com wrote:

Yes, absolutely. I already had a very quick look at it, and it seems even
more interesting now that I see this CCSD example. For now, I am more
interested into the manipulation of the resulting equation and their
factorization, but I would like ultimately to connect automatic derivation in second quantization and automatic factorization of the resulting tensor
contractions.

Right now, Indexed Objects offer me more flexibility in defining index
ranges. To derive SAPT in second quantization, one needs two classes of creation/annihilation operators {a^{\dagger},a} and {b^{\dagger},b}, where anticommutation relations hold within each group, but each operator from
one class commutes with the other class because they act on different
monomers, hence different Fock spaces. So I need to have index ranges for occupied/virtual orbitals of two different monomers in the same equations. Is there any possibility to define such classes of operators in SymPy right
now?

If not, the second quantization module has very useful functionalities, so
maybe I could extend it to my case somehow.



Le samedi 14 mars 2015 15:03:20 UTC-4, Øyvind Jensen a écrit :

You might want to have a look at the secondquant module, and the coupled
cluster example that ships with sympy:
https://github.com/sympy/sympy/blob/master/examples/intermediate/coupled_cluster.py

Øyvind

--
You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/432a7008-c425-4741-8d5f-3667b10264af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/E8406444-2FA2-4489-A790-F11F94E4F61D%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to