QuantumInformation.jl icon indicating copy to clipboard operation
QuantumInformation.jl copied to clipboard

Can't take partial trace of non-numeric matrix

Open araujoms opened this issue 2 years ago • 2 comments

Apparently this issue was fixed some years ago, but it came back: #93

Specifically, the following code fails:

import QuantumInformation
import JuMP

model = JuMP.Model()
JuMP.@variable(model, rho[1:4, 1:4] in JuMP.PSDCone())

QuantumInformation.ptrace(1.0*rho,[2,2],2)

Also, I've had compatibility problems with some packages because your Project.toml was restricting TensorOperations to version 3; I've tried removing this restriction. It caused a different error message to appear when trying to compute the partial trace.

Unrelated: you are also restricting SCS to version 1, and I'm pretty sure version 2 won't break anything.

araujoms avatar Dec 10 '23 17:12 araujoms

As long as this package is relying on VectorInterface it can't be fixed by design, see Jutho/VectorInterface.jl#12.

araujoms avatar Apr 19 '24 09:04 araujoms

I will investigate this issue. In the meantime i checked that the following works:

Convex.partialtrace(1.0*rho,2,[2,2])

pgawron avatar Apr 21 '24 20:04 pgawron