Search found 7 matches

by yunwei
Mon May 23, 2022 7:10 pm
Forum: Spinach support
Topic: About propagator derivative
Replies: 3
Views: 18883

Re: About propagator derivative

Thanks for answering! If I understand correctly about the commutator series part, you are saying that it takes a lot of effort to solve or mitigate the rounding error in the evaluation of the commutator series. So It's nice to use the auxiliary method and apply the scaling and squaring method which ...
by yunwei
Fri May 20, 2022 9:14 pm
Forum: Spinach support
Topic: About propagator derivative
Replies: 3
Views: 18883

About propagator derivative

As far as I know, papers from Spinach show three ways to calculate 1st order propagator derivative: finite difference, commutator series and auxiliary method. I notice that the documentation says auxiliary method is better in accuracy and performance. But are there any published papers that talk abo...
by yunwei
Tue Aug 17, 2021 9:28 pm
Forum: General discussion
Topic: Extending spinach to other physical implementation
Replies: 5
Views: 214947

Re: Extending spinach to other physical implementation

function program() function [b_dag,b]=cavity(h_dim) b_dag=[1:h_dim-1]; b_dag=sqrt(diag(b_dag,-1)); b=[1:h_dim-1]; b=sqrt(b); b=diag(b,1); end [b_dag,b]=cavity(10); w_c=3.9*2*pi;%frequency of cavity H0=w_c*b_dag*b; end These are lines to get the matrix of harmonic oscillator, which is also called cav...
by yunwei
Mon Aug 16, 2021 9:41 pm
Forum: General discussion
Topic: About Grape module
Replies: 3
Views: 170715

Re: About Grape module

I see. But can I choose to only use gradient optimization without the hessian?
by yunwei
Mon Aug 16, 2021 9:39 pm
Forum: General discussion
Topic: Extending spinach to other physical implementation
Replies: 5
Views: 214947

Re: Extending spinach to other physical implementation

It would be fine, I just see the instruction to define the spin system.

I have another question, can I define interaction like S_z1+S_z2+S_x1*S_x2?
by yunwei
Thu Aug 12, 2021 12:19 am
Forum: General discussion
Topic: About Grape module
Replies: 3
Views: 170715

About Grape module

So is the grape module only for the first-order derivatives? Or it also contains second-order? Or user can set up
by yunwei
Wed Aug 11, 2021 5:45 am
Forum: General discussion
Topic: Extending spinach to other physical implementation
Replies: 5
Views: 214947

Extending spinach to other physical implementation

I am thinking if Spinach can be used to construct any kind of Hamiltonian. For example, H=w_c*a_dag*a+w_q*sigmaz+g(a+a_dag)*(sigmax), which is cavity coupling to a 2-level system. And H=wc*b_dag*b+a*(b_dag*b-1)*b_dag*b, which is anharmonic oscillator. I want to apply the optimal model to the system ...