Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions configs/config_app_example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,17 @@ channel1 = 1
channel2 = 2
dark_count = 0

# Daily CHSH report settings (for automated Slack reporting)
# RNG / Quantum Fortune settings
[rng_settings]
channels = [1, 2] # Timetagger channels to sample for singles parity
fortune_size = 8 # Number of parity measurements per fortune run

# Daily report settings (for automated Slack reporting of hardware + games)
[daily_report]
slack_webhook_url = "https://hooks.slack.com/services/YOUR/WEBHOOK/URL" # Get from https://api.slack.com/apps
api_url = "http://localhost:8000" # API endpoint (usually localhost if running on same machine)
timetagger_address = "127.0.0.1:8000" # TimeTagger address
follower_node_address = "192.168.1.100:9000" # Replace with actual follower node address
basis = [0, 22.5] # CHSH basis angles to use for daily measurements
basis = [0, 22.5] # CHSH basis angles to use for daily measurements
overall_timeout_s = 1800 # Hard watchdog for the whole run (SIGALRM). Posts a Slack error and exits if exceeded.
per_game_timeout_s = 600 # Per-game HTTP timeout.
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,14 @@ dependencies = [
"thorlabs-apt-device>=0.3.8",
"tomli-w>=1.0.0",
"typer>=0.15.1",
"fastapi[standard]>=0.115.14",
"httpx>=0.28.1",
"pydantic-settings>=2.10.1",
]

[project.scripts]
pqn = "pqnstack.cli:app"

[project.optional-dependencies]
webapp = [
"fastapi[standard]>=0.115.14",
"httpx>=0.28.1",
"pydantic-settings>=2.10.1",
]

[dependency-groups]
dev = ["hypothesis", "mypy", "coverage", "pytest-randomly", "ruff"]
Expand Down
199 changes: 0 additions & 199 deletions scripts/chsh_daily_report.py

This file was deleted.

2 changes: 2 additions & 0 deletions src/pqnstack/app/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from pqnstack.app.api.routes import coordination
from pqnstack.app.api.routes import debug
from pqnstack.app.api.routes import games
from pqnstack.app.api.routes import health
from pqnstack.app.api.routes import qkd
from pqnstack.app.api.routes import rng
from pqnstack.app.api.routes import serial
Expand All @@ -18,3 +19,4 @@
api_router.include_router(coordination.router)
api_router.include_router(debug.router)
api_router.include_router(games.router)
api_router.include_router(health.router)
1 change: 0 additions & 1 deletion src/pqnstack/app/api/routes/chsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ async def _chsh( # Complexity is high due to the nature of the CHSH experiment.
expectation_values_sign_fixed = [
x * y for x, y in zip(expectation_values, settings.chsh_settings.expectation_signs, strict=False)
]
logger.info("What are you settings? %s", settings.chsh_settings.expectation_signs)

logger.info("After passing signed calculation: %s", expectation_values_sign_fixed)
chsh_value = abs(sum(x for x in expectation_values_sign_fixed))
Expand Down
Loading