Skip to content

Instantly share code, notes, and snippets.

import numpy as np
import random as rand
from numpy.linalg import inv
from numpy.linalg import norm
from scipy.optimize import minimize
from scipy.optimize import linprog
import warnings
import time
import sys
import numpy as np
import random as rand
import multiprocessing
import logging
import warnings
import os
import time
import sys
from numpy.linalg import inv
from numpy.linalg import norm
import numpy as np
import random as rand
from numpy.linalg import inv
from numpy.linalg import norm
from scipy.optimize import minimize
from scipy.optimize import linprog
import warnings
import time
import sys
import numpy as np
import random as rand
import multiprocessing
import logging
import warnings
import os
import time
import sys
from numpy.linalg import inv
from numpy.linalg import norm
import numpy as np
import random as rand
import multiprocessing
import logging
import warnings
import os
import time
import sys
from numpy.linalg import inv
from numpy.linalg import norm
@amitjamadagni
amitjamadagni / Dockerfile
Created June 21, 2016 18:12
Dockerfile for julia kernel
FROM andrewosh/binder-base
# MAINTAINER Andrew Osheroff <andrewosh@gmail.com>
USER root
# Add Julia dependencies
RUN apt-get update && apt-get install -y wget && apt-get clean
USER main
FROM andrewosh/binder-base
# MAINTAINER Andrew Osheroff <andrewosh@gmail.com>
USER root
# Add Julia dependencies
RUN apt-get update && apt-get install -y wget && apt-get clean
USER main
@amitjamadagni
amitjamadagni / time_dependent_2.jl
Created April 12, 2016 09:09
Time dependence in QuDynamics
julia> require("/home/amit/Downloads/SemVII/QuDynamics.jl/src/QuDynamics.jl")
WARNING: `require` is deprecated, use `using` or `import` instead
in depwarn at deprecated.jl:73
[inlined code] from deprecated.jl:694
in require at no file:0
while loading no file, in expression starting on line 0
julia> using QuBase
julia> using QuDynamics
@amitjamadagni
amitjamadagni / time_dependent.jl
Created April 12, 2016 08:22
Time dependence in QuDynamics
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.1 (2015-11-08 10:33 UTC)
_/ |\__'_|_|_|\__'_| |
|__/ | x86_64-linux-gnu
julia> require("/home/amit/Downloads/SemVII/QuDynamics.jl/src/QuDynamics.jl")
WARNING: `require` is deprecated, use `using` or `import` instead
@amitjamadagni
amitjamadagni / iterators_mcwf.jl
Created July 29, 2015 12:32
Iterators for QuMCWFEnsemble
immutable QuMCWF <: QuPropagatorMethod
end
type QuMCWFEnsemble{QA<:QuBase.AbstractQuArray}
ntraj
rho::QA
decomp
QuMCWFEnsemble(ntraj, rho, decomp) = new(1:1:ntraj, rho, decomp)
end