[sympy] Melvin: An algorithm for automatically designing new quantum experiments using SymPy

2021-10-15 Thread Xuemei Gu
could be listed on the SymPy webpage. I am looking forward to hearing feedback from the SymPy commuity on this project. Thank you very much! best regards, Xuemei Gu -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from thi

[sympy] Re: how to get all the base (a, b) from an expression (a[0]*b[0] or a[0]+b[0]) ?

2019-04-25 Thread Xuemei Gu
On Thursday, April 25, 2019 at 2:29:06 PM UTC+2, Xuemei Gu wrote: > > > [image: error.png] > > > > > > > > > > > > > > > > > > > > > > > > > > In addition: > > [image: error.png] > > > I wonder w

[sympy] Symbol (Mul. etc. ) object has no attribute 'base'

2019-04-25 Thread Xuemei Gu
[image: error.png] In addition: [image: error.png] I wonder whether someone has the similar problems. Because I remember I have no such error before I reinstall the anaconda and sympy. So I wonder is this because of the update? Thank you very much! -- You

Re: [sympy] problem with Imaginary in sympy

2019-04-04 Thread Xuemei Gu
ike this: > > In [7]: setupstr='LI(OAMHolo(OAMHolo(XX,e,6),f,2),a,f)' > > In [8]: from sympy import S > > In [9]: S(setupstr) > Out[9]: LI(OAMHolo(OAMHolo(XX, e, 6), f, 2), a, f) > > > On Thu, 4 Apr 2019 at 15:41, Xuemei Gu wrote: > > > > Thank you very much! &

[sympy] How to implement ToExpression (Mathematica wolfram function) in Sympy

2019-04-04 Thread Xuemei Gu
hey, all the friends in the group, I have a question, which I don't know how to solve it. StringA='DP(OAMHolo(BS(OAMHolo(OAMHolo(OAMHolo(OAMHolo(LI(XXX,a,d),d,5),e,3),b,5),c,3),a,d),c,9),a)' fundict={'BS':BS,'LI':LI,'Reflection':Reflection,'OAMHolo':OAMHolo,'DP':DP}

Re: [sympy] problem with Imaginary in sympy

2019-04-04 Thread Xuemei Gu
bles and use > Poly.as_coefficients_dict. > > Aaron Meurer > > On Mon, Apr 1, 2019 at 1:02 PM Xuemei Gu wrote: > > > > > > hey, > > > > I wander whether one has occurred such problem: > > > > I define a initial state: > > > > state=a[1]*b

[sympy] problem with Imaginary in sympy

2019-04-01 Thread Xuemei Gu
hey, I wander whether one has occurred such problem: I define a initial state: state=a[1]*b[0]*c[0]*d[0]*1j+a[1]*b[0]*c[0]*d[0] + a[2]*b[1]*c[1]*d[1] # for some reason I have to do such decomposition datalist=state.as_coefficients_dict() I can get: {

Re: [sympy] Re: How to implement a function with Python(Sympy), realizing the same as '_' and replacement rule in Wolfram Mathematica?

2018-12-14 Thread Xuemei Gu
]*d[4]+a[1]**2*b[3]*c[1]*d[4]+a[1]*b[2]**2*c[3]+b[2]*c[3]+... I only want to take the cases for terms containing b[xxx]*c[xxx]*d[xxx], other cases are all becoming to 0. Do you have any ideas? I thought about match, but seems wrong. Thank you very much! Best regards, Xuemei Gu On Fri, Dec 14

[sympy] How to implement a function with Python(Sympy), realizing the same as '_' and replacement rule in Wolfram Mathematica?

2018-12-11 Thread Xuemei Gu
hey, everyone. hello, I recently played with sympy for comparing with wolfram language. I wonder whether there is a simple way to do the _ (blank) as mathematica do. Here is a link: