Skip to content

Commit

Permalink
ReadMTXE bug and metadata issues fixed (#45)
Browse files Browse the repository at this point in the history
* added CloseStream() in ReadMTXE()

* updated PackageInfo.g

* fixed a bug -- all examples work correctly

* empty space fixed
  • Loading branch information
LeonidPryadko authored Nov 20, 2024
1 parent 5ff87cc commit 45e2485
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ authors:
- family-names: Kozin
given-names: "V. K."
title: "QDistRnd: Calculate the distance of a q-ary quantum stabilizer code"
version: v0.9.3
date-released: 2024-02-06
version: v0.9.5
date-released: 2024-11-20
repository-code: "https://github.com/QEC-pages/QDistRnd"
url: "https://QEC-pages.github.io/QDistRnd/"
keywords:
Expand Down
4 changes: 2 additions & 2 deletions PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ SetPackageInfo(
rec(
PackageName := "QDistRnd",
Subtitle := "Calculate the distance of a q-ary quantum stabilizer code",
Version := "0.9.4",
Date := "23/02/2024",
Version := "0.9.5",
Date := "20/11/2024",
License := "GPL-2.0-or-later",
PackageWWWHome := "https://QEC-pages.github.io/QDistRnd",
SourceRepository :=
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `GAP` package `QDistRnd`
The `GAP` package for calculating the distance of a $q$-ary quantum
stabilizer code.
stabilizer code

[![DOI](https://joss.theoj.org/papers/10.21105/joss.04120/status.svg)](https://doi.org/10.21105/joss.04120)

Expand Down
6 changes: 4 additions & 2 deletions lib/qdistrnd.g
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ BindGlobal("QDR_ProcEntry",
#DeclareGlobalFunction("ReadMTXE");
BindGlobal("ReadMTXE",
function(StrPath, opt... ) # supported option: "field"
local input, data, fmt, line, pair, F, rowsG, colsG, G, G1, i,
local input, data, fmt, line, pair, F, rowsG, colsG, G, G1, i, infile,
iCommentStart,iComment;
# local variables:
# input - file converted to a string
Expand All @@ -483,7 +483,9 @@ BindGlobal("ReadMTXE",
# i - dummy for "for" loop
# iCommentStart, iComment - range of line numbers for comment section

input := ReadAll(InputTextFile(StrPath));; # read the file in
infile := InputTextFile(StrPath);
input := ReadAll(infile);; # read the file in
CloseStream(infile);
data := SplitString(input, "\n");; # separate into lines
line := SplitString(data[1], " ");; # separate into records

Expand Down

0 comments on commit 45e2485

Please sign in to comment.