File size: 4,384 Bytes
ee3d849
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
"""Vector figures for the additional declared models; no fitted data."""
from pathlib import Path
import json
import numpy as np
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
ROOT=Path(__file__).resolve().parents[1]
OUT=ROOT/"figures"
plt.rcParams.update({"font.family":"DejaVu Sans","font.size":10,
 "axes.spines.top":False,"axes.spines.right":False,"axes.titlesize":11,
 "axes.titleweight":"bold","pdf.fonttype":42,"figure.dpi":150})
ink="#132e3a";teal="#237f82";amber="#b86128";gray="#79888f"
fig,ax=plt.subplots(1,2,figsize=(8,3.8),layout="constrained")
d=np.linspace(0,1,300);eps=.5
ax[0].plot(d,eps+(1-eps)*d,color=teal,label="Sharp classical ceiling")
dq=np.linspace(0,np.sqrt(1-eps**2),300)
ax[0].plot(dq,dq*np.sqrt(1-eps**2)+eps*np.sqrt(1-dq**2),
           color=amber,label="Attained coherent-qubit family")
ax[0].plot([.5],[np.sqrt(3)/2],"o",color=amber)
ax[0].plot([.5],[.75],"o",color=teal)
ax[0].set(xlabel="Intrinsic direction distance D",
 ylabel="Observed direction distance",ylim=(.45,1.04),
 title="Calibrated protocol defect ε = 1/2")
ax[0].legend(frameon=False,fontsize=8,loc="lower right")
k=np.arange(1,11)
exact=2.0**np.floor(k/2);coarse=(1.5)**k
ax[1].plot(k,coarse,color=gray,ls="--",label="Coarse total-dimension bound")
ax[1].step(k,exact,where="mid",color=teal,label="Exact fragment capacity")
ax[1].plot(k,exact,"o",color=teal,ms=3)
ax[1].plot([3],[3],"x",color=amber,ms=8,label="Rank 3 fails at K = 3")
ax[1].set(xlabel="Number K of qutrit fragments",ylabel="Largest ready-state rank",
 title="Two locally readable labels",yscale="log",xticks=[1,3,5,7,9])
ax[1].legend(frameon=False,fontsize=8,loc="upper left")
for a in ax:a.grid(axis="y",alpha=.15)
fig.savefig(OUT/"v2_calibration_records.pdf")
fig.savefig(OUT/"v2_calibration_records.png",dpi=175)
plt.close(fig)

r=json.loads((ROOT/"verification/results/v2_hmm_results.json").read_text())
rows=r["finite_blocks"];n=np.array([x["n"] for x in rows])
fig,ax=plt.subplots(1,2,figsize=(8,3.8),layout="constrained")
ax[0].semilogy(n,[x["affinity"] for x in rows],color=gray,label="History affinity Cₙ")
ax[0].semilogy(n,[x["bayes_error"] for x in rows],color=teal,label="Optimal direction error")
ax[0].set(xlabel="Retained symbol count n",ylabel="Probability / affinity",
 title="Memory reveals a hidden direction",xticks=[1,3,5,7,9,11,14])
ax[0].legend(frameon=False,fontsize=9)
ax[1].fill_between(n,[x["floating_beta_lower"] for x in rows],
                  [x["floating_beta_upper"] for x in rows],color=teal,alpha=.16)
ax[1].plot(n,[x["floating_beta_lower"] for x in rows],color=teal)
ax[1].plot(n,[x["floating_beta_upper"] for x in rows],color=teal)
ax[1].plot([14,14],r["conservative_certified_display_interval"],color=amber,lw=5,
           solid_capstyle="round",label="Exact n = 14 certificate")
ax[1].set(xlabel="Boundary block length n",ylabel="Affinity exponent β per symbol",
 title="Convergent spectral enclosures",
 ylim=(0,1.05*max(x["floating_beta_upper"] for x in rows)),
 xticks=[1,3,5,7,9,11,14])
ax[1].legend(frameon=False,fontsize=9,loc="upper right")
for a in ax:a.grid(axis="y",alpha=.15)
fig.savefig(OUT/"v2_hidden_rates.pdf")
fig.savefig(OUT/"v2_hidden_rates.png",dpi=175)
plt.close(fig)

u=np.linspace(-2,2,500);t=(u+u**3/3)/2
fig,ax=plt.subplots(1,2,figsize=(8,3.5),layout="constrained")
ax[0].plot(t,(1+u*u)**2,color=teal,label="I(t) / I(0)")
ax[0].axvline(0,color=gray,lw=.8,ls=":")
ax[0].set(xlabel="Newtonian time t",ylabel="Normalized squared size",
 title="Unique two-sided size minimum")
ax[1].plot(t,np.ones_like(t),color=amber)
ax[1].set(xlabel="Newtonian time t",ylabel="(−V) √I",ylim=(0,1.3),
 title="Constant shape-complexity proxy")
ax[1].text(0,.25,"Integrable two-body parabolic orbit\nNo thermalization is implied",
           ha="center",fontsize=9,color=ink)
for a in ax:a.grid(axis="y",alpha=.15)
fig.savefig(OUT/"v2_janus.pdf")
fig.savefig(OUT/"v2_janus.png",dpi=175)
plt.close(fig)
(ROOT/"verification/results/v2_figure_metadata.json").write_text(json.dumps({
 "kind":"declared analytical models; no measured data",
 "files":["v2_calibration_records.pdf","v2_hidden_rates.pdf","v2_janus.pdf"],
 "source_results":"v2_hmm_results.json; exact formulas in Chapters 9, 11, 12, 13",
 "matplotlib":matplotlib.__version__,"numpy":np.__version__},indent=2)+"\n")
print("Generated 3 additional vector figures and PNG previews.")