Skip to content

Commit cc31eeb

Browse files
committed
fix comments
1 parent 53f71ac commit cc31eeb

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/negativity.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function _partial_transpose(ρ::QuantumObject{<:AbstractArray,OperatorQuantumObj
8787
# 2 - the subsystem need be transposed
8888

8989
nsys = length(mask2)
90-
dimslist = dims_to_list.dims.to) # need `dims.to` here if QO is CompoundDimensions
90+
dimslist = dims_to_list.to) # need `ρ.to` here if ρ is CompoundDimensions
9191
pt_dims = reshape(Vector(1:(2*nsys)), (nsys, 2))
9292
pt_idx = [
9393
[pt_dims[n, mask2[n]] for n in 1:nsys] # origin value in mask2

src/qobj/arithmetic_and_attributes.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ function ptrace(QO::QuantumObject{<:AbstractArray,OperatorQuantumObject}, sel::U
624624
(n_d == 1) && return QO
625625
end
626626

627-
dimslist = dims_to_list(QO.dims.to) # need `dims.to` here if QO is CompoundDimensions
627+
dimslist = dims_to_list(QO.dims.to) # need `QO.dims.to` here if QO is CompoundDimensions
628628
_sort_sel = sort(SVector{length(sel),Int}(sel))
629629
ρtr, dkeep = _ptrace_oper(QO.data, dimslist, _sort_sel)
630630
return QuantumObject(ρtr, type = Operator, dims = Dimensions(dkeep))
@@ -807,7 +807,7 @@ function permute(
807807
order_svector = SVector{length(order),Int}(order) # convert it to SVector for performance
808808

809809
# obtain the arguments: dims for reshape; perm for PermutedDimsArray
810-
dimslist = dims_to_list(A.dims.to) # need `dims.to` here if QO is CompoundDimensions
810+
dimslist = dims_to_list(A.dims.to) # need `A.dims.to` here if A is CompoundDimensions
811811
dims, perm = _dims_and_perm(A.type, dimslist, order_svector, length(order_svector))
812812

813813
return QuantumObject(

test/runtests.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ const testdir = dirname(@__FILE__)
88
# Put core tests in alphabetical order
99
core_tests = [
1010
"block_diagonal_form.jl",
11-
# "correlations_and_spectrum.jl",
12-
# "dynamical_fock_dimension_mesolve.jl",
13-
# "dynamical-shifted-fock.jl",
11+
"correlations_and_spectrum.jl", # TODO: fix tests
12+
"dynamical_fock_dimension_mesolve.jl", # TODO: fix tests
13+
"dynamical-shifted-fock.jl", # TODO: fix tests
1414
"eigenvalues_and_operators.jl",
1515
"entanglement.jl",
16-
# "generalized_master_equation.jl",
16+
"generalized_master_equation.jl",
1717
"low_rank_dynamics.jl",
1818
"negativity_and_partial_transpose.jl",
1919
"progress_bar.jl",
2020
"quantum_objects.jl",
2121
"quantum_objects_evo.jl",
2222
"states_and_operators.jl",
23-
# "steady_state.jl",
23+
"steady_state.jl", # TODO: fix tests
2424
"time_evolution.jl",
2525
"utilities.jl",
2626
"wigner.jl",

0 commit comments

Comments
 (0)