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