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

add unit test for complex numbers #78

Merged
merged 1 commit into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,13 @@ http://plato.asu.edu/sub/testcases.html.
> M. Kocvara and J. Zowe. How mathematics can help in design of mechanical
> structures. In D.F. Griffiths and G.A. Watson, eds., Numerical Analysis
> 1995, Longman, Harlow, 1996, pp. 76--93.


- **quantum.mat**: A traditional problem from quantum information theory,
it computes the probability of succesfully distinguishing two quantum states.
It's used to test SeDuMi's support for complex numbers.
For details see

> [Quantum state discrimination](https://en.wikipedia.org/wiki/Quantum_state_discrimination)

Optimal value is `-0.75395345`
Binary file added examples/quantum.mat
Binary file not shown.
5 changes: 3 additions & 2 deletions examples/test_sedumi.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ function test_sedumi (do_rebuild, do_exit)
test_problems = { ...
'arch0.mat', -5.665170e-01; ...
'control07.mat', -2.062510e+01; ...
'nb.mat', -5.070309e-02; ...
'nb.mat', -5.070309e-02; ...
'OH_2Pi_STO-6GN9r12g1T2.mat', 7.946708e+01; ...
'trto3.mat', -1.279999e+04};
'trto3.mat', -1.279999e+04; ...
'quantum.mat', -0.75395345};

tol = 1e-6;

Expand Down