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

Fix and simplify partial trace, add more tests #284

Merged
merged 2 commits into from
May 6, 2019

Conversation

ericphanson
Copy link
Collaborator

The partial trace was implemented using just kron, *, and sum, which are already atoms, so we actually don’t need PartialTraceAtom. Additionally, evaluate and conic_form! were implemented separately but via the same algorithm (and the version in evaluate was incorrect), so I’ve replaced it all with a generic function following the same method. I also fixed the test (to see why the new version of the test is right, note the solution to the SDP should satisfy the constraint), and added some additional tests.

Fixes #281.

@ararslan
Copy link
Contributor

ararslan commented May 6, 2019

Looks good overall. Would you be willing to add some @test_throws for the argument checking here?

@ararslan ararslan merged commit 03d9764 into jump-dev:master May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Bug in partialtrace
2 participants