diff --git a/python/energy_flow_proper/10_antizeno_engine/.envrc b/python/energy_flow_proper/10_antizeno_engine/.envrc new file mode 100644 index 0000000..c7a853c --- /dev/null +++ b/python/energy_flow_proper/10_antizeno_engine/.envrc @@ -0,0 +1,2 @@ +use_flake +eval "$shellHook" diff --git a/python/energy_flow_proper/10_antizeno_engine/flake.nix b/python/energy_flow_proper/10_antizeno_engine/flake.nix new file mode 100644 index 0000000..850cff9 --- /dev/null +++ b/python/energy_flow_proper/10_antizeno_engine/flake.nix @@ -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 = ./.; + }; + }); +} diff --git a/python/energy_flow_proper/10_antizeno_engine/pyproject.toml b/python/energy_flow_proper/10_antizeno_engine/pyproject.toml new file mode 100644 index 0000000..526ac92 --- /dev/null +++ b/python/energy_flow_proper/10_antizeno_engine/pyproject.toml @@ -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 "] +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"