From c7cb7049c22276da7691dc1a0d24b37c36b276a4 Mon Sep 17 00:00:00 2001 From: "valentin.boettcher@mailbox.tu-dresden.de" Date: Thu, 25 May 2023 11:12:03 -0400 Subject: [PATCH] add bias field simulations --- python/otto_motor/flake.nix | 2 +- python/otto_motor/poetry.lock | 2 +- ...6835727a15a6be7ad2a4f97c5abfd83e1897d1.svg | 93086 ----------- ...920c5dba7f08df2f49d6d7da450af7216683da.svg | 1298 - ...d3d765fb2bb5e24b4345e42a8a4e8542634396.svg | 122393 --------------- ...54b499d604a8059c207d92caa3c8efe6397bd7.svg | 92206 ----------- ...ab11b09986f9da381c9b7358ef6791b055decc.svg | 1363 - ...c7d202e4f7026fe2c9b0540698a8d8993ec2ea.svg | 1085 - ...5d54d8efe0e86485ed8e6f1e7472795815c3cb.svg | 92055 ----------- ...51cd9e1c9dcf2f40ab250a3572403e86aa7fde.svg | 1150 - .../subprojects/cycle_shift/cycle_shift.org | 47 + .../cycle_shift/tangle/cycle_shift.py | 7 + .../subprojects/cycle_shift/tangle/rot.py | 31 + 13 files changed, 87 insertions(+), 404638 deletions(-) delete mode 100644 python/otto_motor/subprojects/bath_memory/.ob-jupyter/146835727a15a6be7ad2a4f97c5abfd83e1897d1.svg delete mode 100644 python/otto_motor/subprojects/bath_memory/.ob-jupyter/1b920c5dba7f08df2f49d6d7da450af7216683da.svg delete mode 100644 python/otto_motor/subprojects/bath_memory/.ob-jupyter/24d3d765fb2bb5e24b4345e42a8a4e8542634396.svg delete mode 100644 python/otto_motor/subprojects/bath_memory/.ob-jupyter/2854b499d604a8059c207d92caa3c8efe6397bd7.svg delete mode 100644 python/otto_motor/subprojects/bath_memory/.ob-jupyter/4bab11b09986f9da381c9b7358ef6791b055decc.svg delete mode 100644 python/otto_motor/subprojects/bath_memory/.ob-jupyter/86c7d202e4f7026fe2c9b0540698a8d8993ec2ea.svg delete mode 100644 python/otto_motor/subprojects/bath_memory/.ob-jupyter/8d5d54d8efe0e86485ed8e6f1e7472795815c3cb.svg delete mode 100644 python/otto_motor/subprojects/bath_memory/.ob-jupyter/e751cd9e1c9dcf2f40ab250a3572403e86aa7fde.svg create mode 100644 python/otto_motor/subprojects/cycle_shift/tangle/rot.py diff --git a/python/otto_motor/flake.nix b/python/otto_motor/flake.nix index e1b8167..3a2c723 100644 --- a/python/otto_motor/flake.nix +++ b/python/otto_motor/flake.nix @@ -27,7 +27,7 @@ shellOverride = (pkgs: oldAttrs: { shellHook = '' # export PYTHONPATH=/home/hiro/src/stocproc/:$PYTHONPATH - # export PYTHONPATH=/home/hiro/src/two_qubit_model/:$PYTHONPATH + export PYTHONPATH=/home/hiro/src/two_qubit_model/:$PYTHONPATH # export PYTHONPATH=/home/hiro/src/hops/:$PYTHONPATH # export PYTHONPATH=/home/hiro/src/hopsflow/:$PYTHONPATH export LD_LIBRARY_PATH="${(pkgs.lib.makeLibraryPath [pkgs.arb])}" diff --git a/python/otto_motor/poetry.lock b/python/otto_motor/poetry.lock index ef9ed43..c1af92b 100644 --- a/python/otto_motor/poetry.lock +++ b/python/otto_motor/poetry.lock @@ -732,7 +732,7 @@ qutip = "^4.6.3" type = "git" url = "git@github.com:vale981/two_qubit_model.git" reference = "main" -resolved_reference = "1306895b4a44f384f7dca65a02dcbb4bd7d0e8fb" +resolved_reference = "9c2dd0f625b16c3be723382fdc83796086660578" [[package]] name = "hops" diff --git a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/146835727a15a6be7ad2a4f97c5abfd83e1897d1.svg b/python/otto_motor/subprojects/bath_memory/.ob-jupyter/146835727a15a6be7ad2a4f97c5abfd83e1897d1.svg deleted file mode 100644 index 1c41caf..0000000 --- a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/146835727a15a6be7ad2a4f97c5abfd83e1897d1.svg +++ /dev/null @@ -1,93086 +0,0 @@ - - - - - - - - 1980-01-01T00:00:00+00:00 - image/svg+xml - - - Matplotlib v3.6.2, https://matplotlib.org/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/1b920c5dba7f08df2f49d6d7da450af7216683da.svg b/python/otto_motor/subprojects/bath_memory/.ob-jupyter/1b920c5dba7f08df2f49d6d7da450af7216683da.svg deleted file mode 100644 index 9be1ab9..0000000 --- a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/1b920c5dba7f08df2f49d6d7da450af7216683da.svg +++ /dev/null @@ -1,1298 +0,0 @@ - - - - - - - - 1980-01-01T00:00:00+00:00 - image/svg+xml - - - Matplotlib v3.6.2, https://matplotlib.org/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/24d3d765fb2bb5e24b4345e42a8a4e8542634396.svg b/python/otto_motor/subprojects/bath_memory/.ob-jupyter/24d3d765fb2bb5e24b4345e42a8a4e8542634396.svg deleted file mode 100644 index 891cfb4..0000000 --- a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/24d3d765fb2bb5e24b4345e42a8a4e8542634396.svg +++ /dev/null @@ -1,122393 +0,0 @@ - - - - - - - - 1980-01-01T00:00:00+00:00 - image/svg+xml - - - Matplotlib v3.6.2, https://matplotlib.org/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/2854b499d604a8059c207d92caa3c8efe6397bd7.svg b/python/otto_motor/subprojects/bath_memory/.ob-jupyter/2854b499d604a8059c207d92caa3c8efe6397bd7.svg deleted file mode 100644 index 6262a6d..0000000 --- a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/2854b499d604a8059c207d92caa3c8efe6397bd7.svg +++ /dev/null @@ -1,92206 +0,0 @@ - - - - - - - - 1980-01-01T00:00:00+00:00 - image/svg+xml - - - Matplotlib v3.6.2, https://matplotlib.org/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/4bab11b09986f9da381c9b7358ef6791b055decc.svg b/python/otto_motor/subprojects/bath_memory/.ob-jupyter/4bab11b09986f9da381c9b7358ef6791b055decc.svg deleted file mode 100644 index 6dee6a1..0000000 --- a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/4bab11b09986f9da381c9b7358ef6791b055decc.svg +++ /dev/null @@ -1,1363 +0,0 @@ - - - - - - - - 1980-01-01T00:00:00+00:00 - image/svg+xml - - - Matplotlib v3.6.2, https://matplotlib.org/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/86c7d202e4f7026fe2c9b0540698a8d8993ec2ea.svg b/python/otto_motor/subprojects/bath_memory/.ob-jupyter/86c7d202e4f7026fe2c9b0540698a8d8993ec2ea.svg deleted file mode 100644 index bbbfbb7..0000000 --- a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/86c7d202e4f7026fe2c9b0540698a8d8993ec2ea.svg +++ /dev/null @@ -1,1085 +0,0 @@ - - - - - - - - 1980-01-01T00:00:00+00:00 - image/svg+xml - - - Matplotlib v3.6.2, https://matplotlib.org/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/8d5d54d8efe0e86485ed8e6f1e7472795815c3cb.svg b/python/otto_motor/subprojects/bath_memory/.ob-jupyter/8d5d54d8efe0e86485ed8e6f1e7472795815c3cb.svg deleted file mode 100644 index 126b3ad..0000000 --- a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/8d5d54d8efe0e86485ed8e6f1e7472795815c3cb.svg +++ /dev/null @@ -1,92055 +0,0 @@ - - - - - - - - 1980-01-01T00:00:00+00:00 - image/svg+xml - - - Matplotlib v3.6.2, https://matplotlib.org/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/e751cd9e1c9dcf2f40ab250a3572403e86aa7fde.svg b/python/otto_motor/subprojects/bath_memory/.ob-jupyter/e751cd9e1c9dcf2f40ab250a3572403e86aa7fde.svg deleted file mode 100644 index 5a7d98b..0000000 --- a/python/otto_motor/subprojects/bath_memory/.ob-jupyter/e751cd9e1c9dcf2f40ab250a3572403e86aa7fde.svg +++ /dev/null @@ -1,1150 +0,0 @@ - - - - - - - - 1980-01-01T00:00:00+00:00 - image/svg+xml - - - Matplotlib v3.6.2, https://matplotlib.org/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/python/otto_motor/subprojects/cycle_shift/cycle_shift.org b/python/otto_motor/subprojects/cycle_shift/cycle_shift.org index 37dce82..e0b50c6 100644 --- a/python/otto_motor/subprojects/cycle_shift/cycle_shift.org +++ b/python/otto_motor/subprojects/cycle_shift/cycle_shift.org @@ -902,3 +902,50 @@ Interestingly, even with the too-fast switching we have greater power, and great [[file:./.ob-jupyter/48801c84dacb82ca9d37f0af0519727e298ec1fd.svg]] [[file:./.ob-jupyter/0ef615f736de27bf2129d27452b3f55fb30ff82e.svg]] :END: + + +* Rotating Hamiltonian +Let us brieofly demonstrate the effects of rotating the system +hamiltonian. + +** Construction +#+begin_src jupyter-python :tangle tangle/rot.py :results none + <> + import itertools + from hops.util.dynamic_matrix import ConstantMatrix +#+end_src + +#+begin_src jupyter-python :tangle tangle/rot.py + rot_models = [] + weights = [.3, .6] + for weight in weights: + off_ax = sc.make_model(0, 0) + off_ax.H_bias = ConstantMatrix(.3 / 2 * qt.sigmax().full()) + rot_models.append(off_ax) +#+end_src + +#+RESULTS: + +#+begin_src jupyter-python + τs = rot_models[0].t + #plt.plot(τs, np.einsum('tij,ij->t', rot_models[0].H(τs), qt.sigmay().full()).real) + plt.plot(τs, abs(rot_models[0].H(τs)[:, 0, 0])) + plt.plot(τs, abs(rot_models[0].H(τs)[:, 0, 1])) +#+end_src + +#+RESULTS: +:RESULTS: +: ConstantMatrix(array([[0. +0.j, 0.15+0.j], [0.15+0.j, 0. +0.j]])) +: ConstantMatrix(array([[0. +0.j, 0.15+0.j], [0.15+0.j, 0. +0.j]])) +| | +[[file:./.ob-jupyter/d0d95f8d7e00f7a9dda3749f2a14973988e6887b.svg]] +:END: + +** Integration +#+begin_src jupyter-python :tangle tangle/rot.py + ot.integrate_online_multi(off_ax_models, 10, increment=10, analyze_kwargs=dict(every=10_000)) +#+end_src + +#+begin_src jupyter-python + aux.import_results(other_data_path="taurus/.data_oa", other_results_path="taurus/results") +#+end_src diff --git a/python/otto_motor/subprojects/cycle_shift/tangle/cycle_shift.py b/python/otto_motor/subprojects/cycle_shift/tangle/cycle_shift.py index 8399754..504dc6a 100644 --- a/python/otto_motor/subprojects/cycle_shift/tangle/cycle_shift.py +++ b/python/otto_motor/subprojects/cycle_shift/tangle/cycle_shift.py @@ -310,3 +310,10 @@ for (i, model), weight in zip(enumerate(off_ax_models), weights): f, a = ot.plot_energy(model) a.set_title(rf"$r_y={weight}$") fs.export_fig(f"full_energy_offaxis_{weight}", x_scaling=2, y_scaling=1) + +τs = rot_models[0].t +#plt.plot(τs, np.einsum('tij,ij->t', rot_models[0].H(τs), qt.sigmay().full()).real) +plt.plot(τs, abs(rot_models[0].H(τs)[:, 0, 0])) +plt.plot(τs, abs(rot_models[0].H(τs)[:, 0, 1])) + +aux.import_results(other_data_path="taurus/.data_oa", other_results_path="taurus/results") diff --git a/python/otto_motor/subprojects/cycle_shift/tangle/rot.py b/python/otto_motor/subprojects/cycle_shift/tangle/rot.py new file mode 100644 index 0000000..0de2cb2 --- /dev/null +++ b/python/otto_motor/subprojects/cycle_shift/tangle/rot.py @@ -0,0 +1,31 @@ +import plot_utils as pu +from hiro_models.one_qubit_model import StocProcTolerances +from hiro_models.otto_cycle import OttoEngine +import hiro_models.model_auxiliary as aux +import numpy as np +import qutip as qt +import utilities as ut +import stocproc +import matplotlib.pyplot as plt +import otto_utilities as ot +import shift_cycle as sc +import ray +import figsaver as fs +ray.shutdown() + +#ray.init(address='auto') +ray.init() +from hops.util.logging_setup import logging_setup +import logging +logging_setup(logging.INFO) +import itertools +from hops.util.dynamic_matrix import ConstantMatrix + +rot_models = [] +weights = [.3, .6] +for weight in weights: + off_ax = sc.make_model(0, 0) + off_ax.H_bias = ConstantMatrix(.3 / 2 * qt.sigmax().full()) + rot_models.append(off_ax) + +ot.integrate_online_multi(off_ax_models, 10, increment=10, analyze_kwargs=dict(every=10_000))