Coverage for src\pqlattice\_backends\_protocol.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2026-01-10 12:32 +0100

1from typing import Protocol 

2 

3from ..typing import Matrix, SquareMatrix, Vector 

4 

5 

6class BackendInterface(Protocol): 

7 def lll(self, lattice_basis: SquareMatrix, delta: float) -> SquareMatrix: ... 

8 

9 def bkz(self, lattice_basis: SquareMatrix, block_size: int, delta: float) -> SquareMatrix: ... 

10 

11 def hkz(self, lattice_basis: SquareMatrix, delta: float) -> SquareMatrix: ... 

12 

13 def shortest_vector(self, lattice_basis: SquareMatrix) -> Vector: ... 

14 

15 def hnf(self, matrix: Matrix) -> tuple[Matrix, SquareMatrix]: ...