QuantumBFS / LuxurySparse.jl

A luxury sparse matrix package for Julia
https://quantumbfs.github.io/LuxurySparse.jl/latest/
Other
33 stars 7 forks source link

IMatrix cause error in linop2dense #2

Closed Roger-luo closed 6 years ago

Roger-luo commented 6 years ago
# Intrinsics/Math.jl: 146
linop2dense(applyfunc!::Function, num_bit::Int) = applyfunc!(Matrix{ComplexF64}(I, 1<<num_bit, 1<<num_bit))

The result is incorrect when you use IMatrix, however IMatrix should act exactly like a dense identity, except it does not allocate memory.

GiggleLiu commented 6 years ago

Not a bug.