| |
| |
| import quantarion_rf as qrf |
| import time |
|
|
| def initiate_first_light(): |
| print("🚀 INITIALIZING PIEZO-RF DRIVE...") |
| |
| carrier_freq = 2.402e9 |
| qrf.set_carrier(carrier_freq) |
| |
| |
| |
| hello_world_spikes = [15, 7, 0, 7, 15] |
| |
| print(f"📡 SENDING TOPOLOGICAL PULSE: {hello_world_spikes}") |
| |
| |
| start_time = time.perf_counter_ns() |
| response = qrf.inject_topological_pulse(hello_world_spikes, modulation='TPSK') |
| end_time = time.perf_counter_ns() |
| |
| |
| coherence = qrf.measure_coherence_time() |
| rejection = qrf.get_out_of_band_rejection() |
| |
| return { |
| "latency_ns": end_time - start_time, |
| "coherence_us": coherence * 1e6, |
| "rejection_db": rejection, |
| "status": "PASS" if coherence > 520e-6 and rejection > 60 else "FAIL" |
| } |
|
|
| |
| results = initiate_first_light() |
| print(f"📊 TEST RESULTS: {results}") |
|
|