Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't take partial trace of non-numeric matrix #105

Open
araujoms opened this issue Dec 10, 2023 · 2 comments
Open

Can't take partial trace of non-numeric matrix #105

araujoms opened this issue Dec 10, 2023 · 2 comments
Assignees

Comments

@araujoms
Copy link

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
Copy link
Author

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

@pgawron pgawron self-assigned this Apr 21, 2024
@pgawron
Copy link
Collaborator

pgawron commented Apr 21, 2024

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants