mirror of
https://github.com/vale981/master-thesis
synced 2025-03-06 02:21:38 -05:00
init 10_anti_zeno_engine
This commit is contained in:
parent
a7739430fa
commit
2c1eabd718
3 changed files with 85 additions and 0 deletions
2
python/energy_flow_proper/10_antizeno_engine/.envrc
Normal file
2
python/energy_flow_proper/10_antizeno_engine/.envrc
Normal file
|
@ -0,0 +1,2 @@
|
|||
use_flake
|
||||
eval "$shellHook"
|
57
python/energy_flow_proper/10_antizeno_engine/flake.nix
Normal file
57
python/energy_flow_proper/10_antizeno_engine/flake.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
description = "Reproduce the anti zeno engine from the paper.";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
utils.url = "github:vale981/hiro-flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, utils, nixpkgs, ... }:
|
||||
(utils.lib.poetry2nixWrapper nixpkgs {
|
||||
name = "10_antizeno_engine";
|
||||
extraOverlay = (self: super: {
|
||||
flint = super.flint.overrideAttrs (old: rec {
|
||||
pname = "flint";
|
||||
version = "39ac8817a18710effd96dff38770f4d1c80ad608";
|
||||
doCheck = false;
|
||||
src = super.pkgs.fetchFromGitHub {
|
||||
owner = "wbhart";
|
||||
repo = "flint2";
|
||||
rev = version;
|
||||
sha256 = "sha256-UIdKUT2oSNth6AHHRPZOTLR7gHnxgmxKWdOR4klPPLw=";
|
||||
};
|
||||
});
|
||||
|
||||
arb = super.arb.overrideAttrs (old: rec {
|
||||
pname = "arb-git";
|
||||
version = "4e879e5602a59c14780085900236c9fa141f993d";
|
||||
doCheck = false;
|
||||
src = super.pkgs.fetchFromGitHub {
|
||||
owner = "fredrik-johansson";
|
||||
repo = "arb";
|
||||
rev = version;
|
||||
sha256 = "sha256-JoBZZk824+O5kVctdUv0qzlX9l3X2RWr5/NPedx50oQ=";
|
||||
};
|
||||
});
|
||||
});
|
||||
shellPackages = (pkgs:
|
||||
(with pkgs;
|
||||
[ pyright python39Packages.jupyter sshfs arb]));
|
||||
|
||||
python = pkgs: pkgs.python39Full;
|
||||
shellOverride = (pkgs: oldAttrs: {
|
||||
shellHook = ''
|
||||
export PYTHONPATH=/home/hiro/src/two_qubit_model/:$PYTHONPATH
|
||||
export PYTHONPATH=/home/hiro/src/hops/:$PYTHONPATH
|
||||
export PYTHONPATH=/home/hiro/src/hopsflow/:$PYTHONPATH
|
||||
export PYTHONPATH=/home/hiro/src/stocproc/:$PYTHONPATH
|
||||
|
||||
export LD_LIBRARY_PATH="${(pkgs.lib.makeLibraryPath [pkgs.arb])}"
|
||||
# '';
|
||||
});
|
||||
noPackage = true;
|
||||
poetryArgs = {
|
||||
projectDir = ./.;
|
||||
};
|
||||
});
|
||||
}
|
26
python/energy_flow_proper/10_antizeno_engine/pyproject.toml
Normal file
26
python/energy_flow_proper/10_antizeno_engine/pyproject.toml
Normal file
|
@ -0,0 +1,26 @@
|
|||
[tool.poetry]
|
||||
name = "10_antizeno_engine"
|
||||
version = "1.0.0"
|
||||
description = "Reproduce the anti zeno engine from the paper."
|
||||
authors = ["Valentin Boettcher <hiro@protagon.space>"]
|
||||
license = "GPLv3"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = ">=3.9,<3.11"
|
||||
hiro_models = { git = "git@github.com:vale981/two_qubit_model.git", branch="main" }
|
||||
hops = { git = "git@gitlab.hrz.tu-chemnitz.de:s8896854--tu-dresden.de/hops.git", branch="time_dep_coupling" }
|
||||
matplotlib = "^3.5.0"
|
||||
jupyter = "^1.0.0"
|
||||
qutip = "^4.6.2"
|
||||
lmfit = "^1.0.3"
|
||||
ipython = "^8.3.0"
|
||||
traitlets = "==5.2.0"
|
||||
Cython = "^0.29.30"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
black = "^21.12b0"
|
||||
click = "==8.0.4"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0", "cython"]
|
||||
build-backend = "poetry.core.masonry.api"
|
Loading…
Add table
Reference in a new issue