Giter Site home page Giter Site logo

1d_tully_ctmqc's Introduction

1D_tully_CTMQC

Python implementation of CTMQC equations for some 1D tully models.

CTMQC is an alternative to surface hopping and can be used to simulate nonadiabatic systems (systems in which electronic transitions take place). The equations appear as a corrected Ehrenfest method, where traj are coupled together via a Quantum Momentum term.

To use the code set the variable `inputs' at the top of the main.py code (in the root folder) to one of the commented out values (or leave it as custom). If you wished to run a custom simulation change the parameters in the else statement around line 288. To run multiple simulations at once put multiple values into the lists when choosing your parameters.

The code is not particularly user-friendly (or space/time efficient). It has been created for testing my implementation/sandboxing ideas for a simple system. You may need to be confident with python to use it!

The most recent version of the code should pass the following tests

Misc

  • Rabi Oscillation (diabatic propagation)
  • dx/dt = v
  • No crashes (unless they are definitely not caused by a bug... -the cause should be known and documented)

Ehrenfest

  • Ehrenfest same as in Agostini, 16 -model4 is a problem this may not be correct (adiabatic propagation)
  • Ehrenfest same as in Agostini, 16 -model4 is a problem this may not be correct (diabatic propagation)
  • Ehrenfest same as in Gossel, 18 (adiabatic propagation)
  • Ehrenfest same as in Gossel, 18 (diabatic propagation)
  • Ehrenfest norm conserved to 1e-12 for dt_n=0.1 dt_e=0.01 (adiabatic propagation)
  • Ehrenfest norm conserved to 1e-12 for dt_n=0.1 dt_e=0.01 (diabatic propagation)
  • Ehrenfest energy is conserved well

CTMQC

  • 1 rep same as Ehrenfest (pass all Ehrenfest tests)
  • d/dt(f_l) = Fad_l
  • sigmal calculator working
  • Divergence of Rlk calculator smoothing gives better norms (RI0 smoothing)
  • Divergence of Rlk calculator smoothing (extrapolation smoothing)
  • Norm conservation gets better with decreasing timestep
  • Energy conservation get better with decreasing timestep
  • 1 rep Qlk = 0
  • All reps same Qlk = 0
  • Sigma is rep independent Qlk = hbar/2 sigma^2
  • Equation S26

1d_tully_ctmqc's People

Contributors

95ellismle avatar

Stargazers

Ahmed Moawad avatar

Watchers

James Cloos avatar  avatar  avatar Ahmed Moawad avatar

Forkers

gharib85

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.