Skip to content

Commit

Permalink
use logx_ops, logz_ops
Browse files Browse the repository at this point in the history
  • Loading branch information
Fe-r-oz committed Dec 5, 2024
1 parent 83154e9 commit aa15ed2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ext/QuantumCliffordJuMPExt/QuantumCliffordJuMPExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import QuantumClifford
import QuantumClifford: stab_to_gf2, logicalxview, logicalzview, canonicalize!,
MixedDestabilizer, Stabilizer
import QuantumClifford.ECC
import QuantumClifford.ECC: distance, AbstractECC, code_n, code_k, parity_checks
import QuantumClifford.ECC: distance, AbstractECC, code_n, code_k, parity_checks,
logx_ops, logz_ops

import SparseArrays
import SparseArrays: SparseMatrixCSC, sparse, spzeros, findnz, sparsevec
Expand Down
4 changes: 2 additions & 2 deletions ext/QuantumCliffordJuMPExt/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ function get_stab(matrix::SparseMatrixCSC{Int, Int}, logical_operator_type::Symb
end

function get_lx_lz(c::Stabilizer)
lx = stab_to_gf2(logicalxview(canonicalize!(MixedDestabilizer(c))))
lz = stab_to_gf2(logicalzview(canonicalize!(MixedDestabilizer(c))))
lx = stab_to_gf2(logx_ops(c))
lz = stab_to_gf2(logz_ops(c))
lx = SparseMatrixCSC{Int, Int}(lx)
lz = SparseMatrixCSC{Int, Int}(lz)
return lx, lz
Expand Down

0 comments on commit aa15ed2

Please sign in to comment.