Objets/Documentation
verifier24.py
Transport rationnel et contrôles · verifier24.py
Télécharger ↓"""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=[]