Giter VIP home page Giter VIP logo

Comments (6)

berceanu avatar berceanu commented on August 22, 2024

I found the following code comment which might be related

    #   If repeated invocation of EXPMV is required for several values of t
    #   or B, it is recommended to provide M as an external parameter as
    #   M = SELECT_TAYLOR_DEGREE(A,m_max,p_max,prec,shift,bal,true).
    #   This also allows choosing different m_max and p_max.

I am guessing this comes directly from the MATLAB code, as the function SELECT_TAYLOR_DEGREE is not defined.

from expmv.jl.

berceanu avatar berceanu commented on August 22, 2024

So here is a code example of my typical usage:

b = ones(Float64, N^2)
for k in 1:10
    b = expmv(0.1,A,b/norm(b))
end 
aout = b/norm(b)

from expmv.jl.

marcusps avatar marcusps commented on August 22, 2024

Nah, it's not really implemented. The code is a direct translation of the MATLAB code with minimal modifications to make it run. Exponentiation over a number of time samples is one of the features that would be nice to add, but that takes lower precedence over the proper/working implementation of the 1 norm estimate.

BTW, is normalization really an issue? When you say the evolution is Schrodinger-like, do you mean the integrated evolution is unitary? If so, I would not think that normalization is a big issue for this algorithm.

from expmv.jl.

berceanu avatar berceanu commented on August 22, 2024

It is an evolution in imaginary time \tau = i t, because I am interested in obtaining the ground state after the time evolution. So the decaying exponential e^{-\tau H} kills the norm of the wavefunction.

from expmv.jl.

marcusps avatar marcusps commented on August 22, 2024

Ah, sorry, I glossed over "imaginary time".

from expmv.jl.

marcusps avatar marcusps commented on August 22, 2024

@berceanu I will push a working 1-norm estimation algorithm soon, and then I will move on to exponentiation of a time interval.

from expmv.jl.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.