Skip to content

Instantly share code, notes, and snippets.

View splch's full-sized avatar

Spencer Churchill splch

View GitHub Profile
@splch
splch / avycon-nvr-openapi.yaml
Created March 15, 2026 14:36
Avycon AVR-NSV08P8 NVR HTTP API — OpenAPI 3.1.0 spec (reverse-engineered from live device)
openapi: 3.1.0
info:
title: Avycon NVR HTTP API
description: |
Reverse-engineered API specification for the Avycon AVR-NSV08P8 Diversity Series
8-Channel 4K NVR with 8 PoE ports.
Firmware: V8.2.3.2-20230816 | Web Client: V1.3.1.7 | HTTP API: V1.026
## Authentication Flow
@splch
splch / README.md
Created October 11, 2025 18:35
DXHOG / Distributed XEB minimal verifier in Qiskit

DXHOG / Distributed XEB (Qiskit mini-check)

Minimal functions to reproduce the DXHOG/XEB scoring used in the paper's task: 2^n * |⟨z|U|ψ⟩|^2 - 1 with Haar-random states and random Clifford measurements.

  • dxhog_trial(n, rng): "quantum" trial (ideal simulation)
  • dxhog_uniform_baseline(n, rng): no-info classical baseline (≈0 XEB)
  • dxhog_noisy_trial(n, eps, rng): mixture model → expected XEB ≈ eps

Paper this mirrors: Demonstrating an unconditional separation between quantum and classical information resources.

@splch
splch / optimized_quantum_results.ipynb
Last active December 11, 2024 20:52
use a gaussian mixture model to fit results
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@splch
splch / permuted_mirror_circuit_benchmark.ipynb
Last active September 12, 2024 19:08
A proposal for a reproducible, scalable, and holistic Adversarial Quantum Benchmark.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@splch
splch / infinite_temperature.ipynb
Created August 28, 2024 23:00
calculate the rgb of a very hot black-body
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@splch
splch / windows_setup.ps1
Last active December 17, 2023 04:57
Windows setup script
# Check for Administrator Privileges
if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Write-Host "This script requires Administrator privileges. Please run it as an Administrator."
Exit
}
# Run as Administrator
Set-ExecutionPolicy Bypass -Scope Process -Force -Confirm:$false
# Install Chocolatey
@splch
splch / adversarial_benchmark.ipynb
Last active November 16, 2023 23:10
The notebook describes and implements an "Adversarial Error Benchmarking" process for quantum circuits, where a specific quantum circuit is designed to evaluate the error rate on a simulated quantum device, Aria-2, with a defined noise model.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
first_key_down next_key_down freq mean std
A A 75865 415.7420473683694 211.15077174990657
A B 1004970 165.28457375000784 85.53598674842621
A C 2195967 167.4397778601112 61.035602729802285
A D 1441567 162.8665241188316 31.321963905203503
A E 3605848 405.72196709898844 208.6443786776474
A F 651427 402.95098691571224 203.15117061387028
A G 638791 395.8929611390238 198.9873950522662
A H 5849734 197.66910352690073 90.16204233255728
A I 601633 249.09574362732477 202.01115726544845
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.