Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
GiggleLiu committed Mar 16, 2024
2 parents de65d30 + eb75891 commit 0362549
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
Empty file added src/cliffordgroup.jl
Empty file.
2 changes: 1 addition & 1 deletion src/encoder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ function encode_stabilizers(stabilizers::AbstractVector{PauliString{N}})where N
qc = encode_circuit(bimat)
data_qubits = bimat.ordering[size(bimat.matrix,1)+1:end]
return qc, data_qubits, bimat
end
end
2 changes: 0 additions & 2 deletions src/tensornetwork.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ function generate_tensor_network(cl::CliffordNetwork{T}, ps::Dict{Int, BoundaryS
for (k, v) in qs
nvars = _add_boundary!(cl.mapped_qubits, v, k, factors, cards, mars, nvars)
end
# @show mars
return TensorNetworkModel(
1:nvars,
cards,
Expand Down Expand Up @@ -109,7 +108,6 @@ end
vector_syndrome(measure_outcome) = iszero(measure_outcome) ? Bool[1,0,0,1] : Bool[0,1,1,0]
function projector(::Type{T}, v::AbstractVector) where T
locs = findall(!iszero, v)
#n = length(v)
return Diagonal(T.(v))[locs, :]
end

Expand Down
2 changes: 1 addition & 1 deletion test/encoder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ end
for i in 1:size(bimat.matrix, 1)
@test u * mat(ComplexF64, put(9, bimat.ordering[i] => Z)) * u' mat(ComplexF64, stabilizers[i])
end
end
end

0 comments on commit 0362549

Please sign in to comment.