Giter Site home page Giter Site logo

uscqserver / hoqsttutorials.jl Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 7.0 15.4 MB

Tutorials for Hamiltonian Open Quantum System Toolkit(HOQST)

Home Page: https://uscqserver.github.io/OpenQuantumTools.jl/dev/

License: MIT License

HTML 94.80% Jupyter Notebook 3.06% Julia 1.87% Smarty 0.04% CSS 0.23%
quantum-computing

hoqsttutorials.jl's People

Contributors

dlidar avatar neversakura avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hoqsttutorials.jl's Issues

To add example for time dependent coupling to a bath

It seems one cannot construct an annealing object with time-dependent coupling to a bach in the same way as constant coupling. The following code block for example gives an error. It will be useful to have an example that desmonstrates using TimeDependentCoupling.

Δ = 0.1
H = DenseHamiltonian([(s)->2*s-1, (s)->1.0], [σz, Δ * σx], unit=:ħ)
η = 0.001
fc = 4 * 2 * π
T = 20
bath = Ohmic(η, fc, T)
coupling = TimeDependentCoupling([(s)->s], [σz], unit=:ħ)
u0 = PauliVec[3][1]
annealing = Annealing(H, u0, coupling=coupling, bath=bath)
MethodError: Cannot `convert` an object of type TimeDependentCoupling to an object of type OpenQuantumBase.AbstractCouplings
Closest candidates are:
  convert(::Type{T}, ::T) where T at essentials.jl:171

Stacktrace:
 [1] Interaction(::TimeDependentCoupling, ::OhmicBath) at C:\Users\x35dai\.julia\packages\OpenQuantumBase\Pk0vX\src\coupling\interaction.jl:16
 [2] Annealing(::DenseHamiltonian{Complex{Float64}}, ::Array{Complex{Float64},1}; coupling::TimeDependentCoupling, bath::OhmicBath, interactions::Nothing, annealing_parameter::Function) at C:\Users\x35dai\.julia\packages\OpenQuantumBase\Pk0vX\src\annealing\annealing_type.jl:33
 [3] top-level scope at In[11]: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.