This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using YaoLocations | |
using BenchmarkTools | |
using BQCESubroutine | |
using StrideArrays | |
using BQCESubroutine.Utilities | |
using LoopVectorization | |
using ThreadingUtilities | |
using ArrayInterface | |
using BQCESubroutine.Utilities: BitSubspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Expronicon | |
using MLStyle | |
function expand_mlstyle(m::Module, ex) | |
@switch ex begin | |
@case Expr(:macrocall, Symbol("@match"), xs...) || Expr(:macrocall, Symbol("@switch"), xs...) || | |
Expr(:macrocall, Symbol("@λ"), xs...) | |
return expand_mlstyle(m, macroexpand(m, ex)) | |
@case ::Expr | |
return Expr(ex.head, map(x->expand_mlstyle(m, x), ex.args)...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function remote () { | |
code --remote ssh-remote+desktop /home/roger/code/$1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qsim | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from qsim.evolution import hamiltonian | |
from qsim.graph_algorithms.graph import unit_disk_grid_graph, rydberg_graph | |
from qsim.graph_algorithms.adiabatic import SimulateAdiabatic | |
from qsim import schrodinger_equation | |
import matplotlib.gridspec as gridspec | |
import scipy.sparse | |
import scipy.optimize |
OlderNewer