-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
62 lines (53 loc) · 2.38 KB
/
run.sh
File metadata and controls
62 lines (53 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
set -euo pipefail
# ── Paths ──────────────────────────────────────────────────────────────────
DATA_DIR="/data/rho2_sim"
FIG_DIR="/figures/rho2_results"
mkdir -p "$DATA_DIR"
mkdir -p "$FIG_DIR"
# ── Dataset 1: Depolarizing noise ──────────────────────────────────────────
echo "=== [1/5] Depolarizing noise ==="
python -m src.simulation.rho2_sims.main_grid_run \
--out "$DATA_DIR" \
--noise depol \
--m-values 1 2 3 4 5 \
--iterative
# ── Dataset 2: Z-dephasing with Clifford twirling ─────────────────────────
echo "=== [2/5] Z-dephasing with twirl ==="
python -m src.simulation.rho2_sims.main_grid_run \
--out "$DATA_DIR" \
--noise z \
--m-values 1 2 3 4 5 \
--iterative
# ── Dataset 3: Z-dephasing, no twirl ──────────────────────────────────────
echo "=== [3/5] Z-dephasing no twirl ==="
python -m src.simulation.rho2_sims.main_grid_run \
--out "$DATA_DIR" \
--noise z \
--m-values 1 2 3 4 5 \
--iterative \
--no-twirl
# ── Dataset 4: Single-qubit product state, Z-dephasing, no twirl ──────────
echo "=== [4/5] Single-qubit product state ==="
python -m src.simulation.rho2_sims.main_grid_run \
--out "$DATA_DIR" \
--noise z \
--m-values 1 2 3 4 5 \
--iterative \
--no-twirl \
--target single_qubit_product
# ── Dataset 5: Approximate twirl (subset_fraction=0.2) ────────────────────
echo "=== [5/5] Approximate twirl ==="
python -m src.simulation.rho2_approx_twirl_sim.main_grid_run \
--out "$DATA_DIR" \
--noise z \
--m-values 1 5 \
--iterative \
--subset-fraction 0.2 \
--subset-seed 42
# ── Figures ────────────────────────────────────────────────────────────────
echo "=== Generating figures ==="
python figures/rho2_plots.py \
--data-dir "$DATA_DIR" \
--figures-dir "$FIG_DIR"
echo "=== Done. Results written to $DATA_DIR and $FIG_DIR ==="