diff --git a/src/cliffordgroup.jl b/src/cliffordgroup.jl new file mode 100644 index 0000000..e69de29 diff --git a/src/encoder.jl b/src/encoder.jl index 55bccd2..7eb95ee 100644 --- a/src/encoder.jl +++ b/src/encoder.jl @@ -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 \ No newline at end of file +end diff --git a/src/tensornetwork.jl b/src/tensornetwork.jl index 2555d5f..613dc7b 100644 --- a/src/tensornetwork.jl +++ b/src/tensornetwork.jl @@ -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, @@ -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 diff --git a/test/encoder.jl b/test/encoder.jl index f0b3b74..08322a8 100644 --- a/test/encoder.jl +++ b/test/encoder.jl @@ -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 \ No newline at end of file +end