Dist m4ri 0.0.1.alpha
Computing distance of a classical or quantum CSS code
Loading...
Searching...
No Matches
gen_segfault_matrix.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2import sys
3
4rows = 64
5cols = 65
6nz = rows + rows # identity + last col
7
8print("%%MatrixMarket matrix coordinate integer general")
9print(f"{rows} {cols} {nz}")
10
11# Identity matrix (pivots)
12for i in range(1, rows + 1):
13 print(f"{i} {i} 1")
14
15# Last column (non-pivot, all 1s)
16for i in range(1, rows + 1):
17 print(f"{i} {cols} 1")