Skip to content

Commit

Permalink
use eye for identity
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewware authored Sep 17, 2022
1 parent 305e375 commit edf0478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RandomQuantum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ end

function rand(dist::ClosedHaarEnsemble)
X = rand(GinibreEnsemble(dist.dim))
Q = qr(X).Q * I # yields dense square matrix
Q = qr(X).Q * eye(dist.dim) # yields dense square matrix
d = diag(Q)
d ./= abs.(d)
Q ./= d
Expand Down

0 comments on commit edf0478

Please sign in to comment.