By the way, by providing values do you mean data components? If so, have you tried to substitute the expression with matrices?
On Saturday, 29 August 2015 00:57:12 UTC+2, Francesco Bonazzi wrote: > > Hi! > > I believe the sympy quantum code is currently not maintained, as the > original authors don't have time for the project anymore. > > On Friday, 28 August 2015 20:22:51 UTC+2, Matt Chan wrote: >> >> Hi Sympy-users, >> >> I'm trying to figure out if it's possible to evaluate an expression from >> the quantum physics module. I'm fairly new at Sympy but I have some python >> experience. I thought I would ask before I dived into the source code. >> >> Say for example I have something like the code in >> examples/intermediate/coupled_cluster.py. It derives the energy and >> amplitude equations in second quantization, but it needs to be solved. >> >> The energy equation after cleanup is here: >> >> E = AntiSymmetricTensor(f, (_k,), (_c,))*AntiSymmetricTensor(t, (_c,), >> (_k,)) + AntiSymmetricTensor(t, (_c,), (_l,))*AntiSymmetricTensor(t, (_d,), >> (_k,))*AntiSymmetricTensor(v, (_k, _l), (_d, _c))/2 >> >> Can I provide some values for AntiSymmetricTensor(t, (_c,), (_k,)) to be >> substituted with evalf or lambdify? >> >> Thanks in advance for your help! >> Matt >> > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/e6b41dde-54c1-4743-9f69-43bbfcf6a284%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
