-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
144 lines (127 loc) · 6.35 KB
/
demo.html
File metadata and controls
144 lines (127 loc) · 6.35 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- Deployment timestamp: 2026-01-01T11:00:00Z -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Demo | HAWRA</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap" rel="stylesheet">
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
<header>
<nav>
<a href="index.html" class="logo">HAWRA</a>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="presentation.html">The Vision</a></li>
<li><a href="docs.html">Documentation</a></li>
<li><a href="demo.html">Simulation Demo</a></li>
<li><a href="https://github.com/selectess/HAWRA" target="_blank">GitHub</a></li>
</ul>
</nav>
</header>
<main>
<section>
<span class="tag">Interactive Simulation</span>
<h1>PQPE Simulation Playground</h1>
<p style="color: #a0a0a0; margin-bottom: 2rem;">Visualize in real-time the quantum coherence evolution of a P700 Bio-Qubit under the influence of the Silica Shield.</p>
<div class="card" style="margin-bottom: 2rem; border-left: 4px solid var(--primary-color);">
<h3>Simulation Context</h3>
<p>This demo simulates the execution of an Arbol circuit on a PQPE (Phyto-synthetic Quantum Processing Entity). The model compares a natural Photosystem I (fast decoherence) to an HAWRA-optimized PSI (Silica Shield).</p>
</div>
<div class="card" style="margin-top: 2rem;">
<div id="coherence-plot"></div>
<div class="controls">
<button id="run-btn" class="btn">Launch "First Bloom" Simulation</button>
<div style="margin-left: 2rem; display: flex; align-items: center;">
<span id="status-tag" class="tag" style="background: #333; color: #666;">IDLE</span>
</div>
</div>
<div id="console" class="code-block" style="height: 150px; margin-top: 2rem; font-size: 0.8rem; color: var(--primary-color);">
> Awaiting initialization...
</div>
</div>
<div class="grid" style="margin-top: 2rem;">
<div class="card">
<h4>Input Parameters</h4>
<p style="font-size: 0.8rem; color: #666;">- Light Intensity: 800 µmol/m²/s<br>- Silica Shield Thickness: 12nm<br>- Temperature: 298K</p>
</div>
<div class="card">
<h4>Output Metrics</h4>
<div id="metrics" style="font-size: 0.8rem;">
T2: -- ps<br>Fidelity: -- %<br>Metabolic Energy: -- J
</div>
</div>
</div>
<section id="roadmap-summary" style="margin: 4rem 0;">
<h2 style="font-size: 1.5rem; margin-bottom: 2rem;">Next Steps (2026 Roadmap)</h2>
<div class="grid">
<div class="card" style="padding: 1rem; border-color: rgba(0, 255, 136, 0.3);">
<span class="roadmap-date">Q1 2026</span>
<p>pHAWRA v5.8 genetic cassette assembly.</p>
</div>
<div class="card" style="padding: 1rem; border-color: rgba(0, 255, 136, 0.3);">
<span class="roadmap-date">Q2 2026</span>
<p>Ultrafast spectroscopy measurements.</p>
</div>
</div>
</section>
</section>
</main>
<script>
const runBtn = document.getElementById('run-btn');
const statusTag = document.getElementById('status-tag');
const consoleEl = document.getElementById('console');
const metricsEl = document.getElementById('metrics');
function log(msg) {
const time = new Date().toLocaleTimeString();
consoleEl.innerHTML += `<br>[${time}] ${msg}`;
consoleEl.scrollTop = consoleEl.scrollHeight;
}
runBtn.onclick = () => {
statusTag.innerText = 'RUNNING';
statusTag.style.background = 'rgba(0, 255, 136, 0.2)';
statusTag.style.color = 'var(--primary-color)';
log('Initializing BioOS engine...');
log('Loading BSIM bytecode: first_bloom.bsim.json');
let x = [];
let y_nat = [];
let y_hawra = [];
let t = 0;
const interval = setInterval(() => {
if (t > 100) {
clearInterval(interval);
statusTag.innerText = 'COMPLETED';
log('Simulation completed successfully.');
metricsEl.innerHTML = 'T2: 41.67 ps<br>Fidelity: 96.4 %<br>Metabolic Energy: 1.2e-6 J';
return;
}
x.push(t);
// Simulated decay curves
y_nat.push(Math.exp(-t/25) + (Math.random() * 0.05));
y_hawra.push(Math.exp(-t/41.67) + (Math.random() * 0.02));
Plotly.newPlot('coherence-plot', [
{ x: x, y: y_nat, name: 'Natural P700 (25ps)', line: {color: '#666', dash: 'dot'} },
{ x: x, y: y_hawra, name: 'HAWRA PQPE (41.67ps)', line: {color: '#00ff88', width: 3} }
], {
title: 'Quantum Coherence Evolution (T2)',
paper_bgcolor: 'rgba(0,0,0,0)',
plot_bgcolor: 'rgba(0,0,0,0)',
font: { color: '#e0e0e0' },
xaxis: { title: 'Time (ps)', gridcolor: '#333' },
yaxis: { title: 'Coherence Amplitude', gridcolor: '#333', range: [0, 1.1] }
});
if (t === 20) log('Activating Silica Shield (Lsi1)...');
if (t === 50) log('Executing Hadamard gate on qubit q0...');
if (t === 80) log('Reading state via Luc Transducer...');
t += 2;
}, 50);
};
</script>
<footer>
<p>© 2026 HAWRA Project - Move37 Initiative.</p>
</footer>
</body>
</html>