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

diamond_distance crashing? #50

Closed
lpawela opened this issue Mar 6, 2019 · 1 comment
Closed

diamond_distance crashing? #50

lpawela opened this issue Mar 6, 2019 · 1 comment

Comments

@lpawela
Copy link
Member

lpawela commented Mar 6, 2019

Consider the following code

effs = Vector{ComplexF64}[[1/sqrt(2), 0], [1/sqrt(6), 1/sqrt(3)], [(-sqrt(2)-1im*sqrt(6))/(4sqrt(3)), 1/sqrt(3)], [(-sqrt(2)+1im*sqrt(6))/(4sqrt(3)), 1/sqrt(3)]]
effsperm = Vector{ComplexF64}[effs[2], effs[3], effs[4], effs[1]]
J1 = sum(proj(ket(i, 4)) ⊗ proj(ket(j, 4)) ⊗ proj(effs[i]) ⊗ proj(effs[j]) for i=1:4, j=1:4)
J2 = sum(proj(ket(i, 4)) ⊗ proj(ket(j, 4)) ⊗ proj(effsperm[i]) ⊗ proj(effsperm[j]) for i=1:4, j=1:4)
##
diamond_distance(DynamicalMatrix(J1, 4, 16), DynamicalMatrix(J2, 4, 16))

The last line crashes without an error, htop shows no julia process running.

@lpawela
Copy link
Member Author

lpawela commented Aug 15, 2019

Fixed by jump-dev/Convex.jl#293

@lpawela lpawela closed this as completed Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant