Atelier des rouesLab FR
Objects/Documentation

verifier24.py

Rational transport and checks · verifier24.py

Download ↓
"""Exact replay of the published matrices and their independently obtained dual certificates."""
from fractions import Fraction as F
from pathlib import Path
from itertools import combinations_with_replacement
import json
from transport24 import decode, nearest_image, transport
from verifier21 import table, check

def event_error(q,x):
    return max(sum((q[i]-x[i] for i in range(len(q)) if mask>>i&1),F(0)) for mask in range(1<<len(q)))

def image(a,k):
    return [sum(s*t for s,t in zip(a,col)) for col in zip(*k)]

def fixed_small():
    laws=[]

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.