Skip to content

Commit

Permalink
Remove old, unused, too-specific functions
Browse files Browse the repository at this point in the history
Remove a bunch of functions that were sitting in PseudomodesTTEDOPA
since its creation but were never used, and would much probably never be
used in the future, such as functions for creating initial states for
spin chains, plot utilities or generic-sounding "local operator"
functions that actually returned very specific operators based on the
SiteType of the Index.
  • Loading branch information
phaerrax committed Mar 11, 2024
1 parent c7617c0 commit 3449068
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 984 deletions.
46 changes: 5 additions & 41 deletions src/LindbladVectorizedTensors.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
module LindbladVectorizedTensors

using Base.Filesystem
using CSV
using Combinatorics
using DataFrames
using ITensors
using IterTools
using JSON
Expand All @@ -12,39 +8,19 @@ using ProgressMeter

import ITensors.state, ITensors.op, ITensors.space

export allequal,
chain,
export chain,
chop,
consecutivepairs,
construct_step_list,
disablegrifqtech,
embed_slice,
filenamett,
gellmannbasis,
gellmannmatrix,
groupresults,
levels,
load_parameters,
oscdimensions,
parse_init_state_osc,
partialtrace,
vec,
vonneumannentropy,
chain_L1_state,
chain_basis_states,
level_subspace_proj,
parse_init_state,
parse_spin_state,
single_ex_state,
jwstring,
sitenumber,
jwstring
vec,
vonneumannentropy

include("utils.jl")

export spin_current_op_list

include("current_operators.jl")

include("site_types/spinhalf.jl")
include("site_types/vectorized_spinhalf.jl")
include("site_types/fermion.jl")
Expand All @@ -59,19 +35,7 @@ export dissipator_loss, dissipator_gain, dissipator, mixedlindbladplus, mixedlin

include("site_types/vectorized_oscillator.jl")

export twositeoperators,
localop,
interactionop,
evolve,
fermioncurrent,
forwardflux,
backwardflux,
dissipator_symmetric,
dissipator_asymmetric,
lindbladian_xy,
hamiltonian_xy,
gkslcommutator,
gkslcommutator_itensor
export gkslcommutator, gkslcommutator_itensor

include("operators.jl")

Expand Down
14 changes: 8 additions & 6 deletions src/closure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ struct Closure
innercoupling
outercoupling
damping
@doc"""
Closure(ω::Vector{<:Real}, γ::Vector{<:Real}, g::Vector{<:Real}, ζ::Vector{<:Complex})
@doc """
Closure(ω::Vector{<:Real}, γ::Vector{<:Real}, g::Vector{<:Real}, ζ::Vector{<:Complex})
Closure is an aggregate type which stores the parameters needed to describe the set of
pseudomodes that make up a Markovian closure.
"""
Closure is an aggregate type which stores the parameters needed to describe the set of
pseudomodes that make up a Markovian closure.
"""
function Closure(
ω::Vector{<:Real}, γ::Vector{<:Real}, g::Vector{<:Real}, ζ::Vector{<:Complex}
)
Expand Down Expand Up @@ -633,7 +633,9 @@ function filled_closure_op_adjoint(
for (j, site) in enumerate(sitenumbers)
# a ρ a†
opstring = [repeat(["F⋅ * ⋅F"], site - 1); "A⋅ * ⋅A†"]
+= (gradefactor * damp(mc, j), collect(Iterators.flatten(zip(opstring, 1:site)))...)
+= (
gradefactor * damp(mc, j), collect(Iterators.flatten(zip(opstring, 1:site)))...
)
# -0.5 (a a† ρ + ρ a a†) = -0.5 (ρ - a† a ρ + ρ a† a)
+= 0.5damp(mc, j), "N⋅", site
+= 0.5damp(mc, j), "⋅N", site
Expand Down
78 changes: 0 additions & 78 deletions src/current_operators.jl

This file was deleted.

Loading

0 comments on commit 3449068

Please sign in to comment.