[sympy] Re: What is out there for SymPy code generation / optimizing compiler effort?

2015-12-01 Thread nikolas
Hi all, this is an exciting topic, I hope it's still alive! A common use case for me is to automatically generate high dimensional symbolic ODEs (photonic circuit non-linear coupled mode equations). One thing I have found is that lambdify does not easily allow for efficiently re-using common su

Re: [sympy] Quantum operator algebra

2014-11-06 Thread Nikolas Tezak
:) Best, Nik On Nov 5, 2014, at 11:20 PM, Robert Johansson wrote: > Hi Nikolas > > Great to hear that you’re interested in finding a common framework for > symbolic quantum mechanics for QNET and the sympy quantum module! I think > both projects would benefit from this.

Re: [sympy] Quantum operator algebra

2014-11-05 Thread Nikolas Tezak
examples for the sympy.strategies module? Thanks, Nikolas On Nov 5, 2014, at 11:41 AM, Francesco Bonazzi wrote: > Concerning pattern matching and term rewriting, there is some work by Matthew > Rocklin as separate modules (i.e. unrelated to the standard pattern matcher > in s

Re: [sympy] Quantum operator algebra

2014-11-05 Thread nikolas
to sympy.physics(.quantum) Then I could make QNET only contain the actual component models as well methods for parsing circuit definition files, etc. @Brian and Robert, if you two had time to offer your input, that would be very highly appreciated. Thanks! Nikolas On Tuesday, Novemb

[sympy] Quantum operator algebra

2014-11-04 Thread nikolas
ht be the last release of QNET that still features the general purpose quantum operator algebra code). Thanks! Nikolas [1] QNET: http://mabuchilab.github.io/QNET/ [2] SLH models and networks of quantum optical systems http://arxiv.org/abs/0707.0048 [3] QuTiP: http://qutip.org/ -- You r

Re: [sympy] Re: Expr.series get non-zero coefficients

2012-09-12 Thread Nikolas Tezak
, Chris Smith wrote: > On Thu, Sep 13, 2012 at 6:52 AM, nikolas wrote: >> Follow-up: I think I have found a way that works. >> I guess if one is interested in expanding about 0, one can simply do >>>>> f = x + 5 * x**3 >>>>> coeffs = reversed(series(f, x,

[sympy] Re: Expr.series get non-zero coefficients

2012-09-12 Thread nikolas
= 0, I can substitute x->x0 + x1 and expand in orders of x1. If this is a bad way to do it, please let me know! Thanks, Nikolas On Thursday, September 13, 2012 9:42:30 AM UTC+9, nikolas wrote: > > Hey guys, > > for a series expansion of some function f(x) about some point x0

[sympy] Expr.series get non-zero coefficients

2012-09-12 Thread nikolas
get the actual coefficient... Is there some other way to achieve this functionality easily? It would seem that under the hood the machinery to do all this would already be in place... Thanks! Nikolas -- You received this message because you are subscribed to the Google Groups &q

[sympy] Re: Check solution with system of equations in Matrix form

2011-08-27 Thread Nikolas Tautenhahn
ts are needed and after reading your second post, I will most likely use "solve" anyway. Once again: Thanks for all the clarification and your little walkthrough of interesting functions/methods! Best regards, Nikolas Tautenhahn -- You received this message because you are subscribed to t

[sympy] Check solution with system of equations in Matrix form

2011-08-26 Thread Nikolas Tautenhahn
e a quick way to get (for example) (a-4)*w1 + 3*w3 - q from arrays/matrices like [a-4, 0, 3, -1] and [w1,w2,w3,q]? I.e. how can formulas be built dynamically? Unfortunately, I couldn't find this in the docs... Best regards, Nikolas Tautenhahn -- You received this message because you are subscribe

Re: [sympy] lambdify for Piecewise

2010-03-06 Thread Nikolas Tezak
Hi Brian, I'm not sure to have completely understood the problem, but would a nested structure such as x if x < 0 else (2*x if x > 1 else (...)) be useful for your purpose? Cheers, Nikolas Am 05.03.2010 um 20:31 schrieb Brian Granger: Hi, I have been working on Piecewise and

Re: [sympy] Bra-Ket Algebra

2010-01-31 Thread Nikolas Tezak
Hi Ondrej, Am 31.01.2010 um 08:43 schrieb Ondrej Certik: ... I run you example and got a figure (attached). Nice! So looking at the source code, here is the hamiltonian: hamilton_operator = sum((ba.Ket(basis_states[i]) * ba.Bra(basis_states[(i + 1) % len(basis_states)]) for i in xrange(len(ba

[sympy] Bra-Ket Algebra

2010-01-30 Thread Nikolas Tezak
ten some lengthy doc-strings to explain things :) As of yet it does not support sympy, but if I'm not mistaken, it should be very easy to extend it such that scalar multiplication with sympy expressions becomes possible. Enjoy, Nikolas -- You received this message because you are subscr

Re: [sympy] np.array symbol

2010-01-28 Thread Nikolas Tezak
determined and should be evaluated (as efficiently as possible). I understand of course that this is a bit specialized. Nikolas Am 27.01.2010 um 23:47 schrieb Aaron S. Meurer: If I understand you correctly, it is related to this: http://code.google.com/p/sympy/issues/detail?id=16 Symbols with

Re: [sympy] Re: np.array symbol

2010-01-28 Thread Nikolas Tezak
large array containing millions of entries. Any ideas concerning this would be greatly appreciated :) Nikolas Am 28.01.2010 um 08:51 schrieb smichr: On Jan 28, 3:44 am, Nikolas Tezak wrote: Hi, I am wondering if it were in principle possible to create subclass of Symbol, that could h

[sympy] np.array symbol

2010-01-27 Thread Nikolas Tezak
try to implement it myself, but maybe some of you already know of some reason why this would not work (efficiently). Nikolas -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To u

Re: [sympy] GSoC 2010

2010-01-27 Thread Nikolas Tezak
integrate it, but I am working on that as well. Nikolas -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@google