mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-19 07:20:28 +01:00
fix: cannot assign in shor-circut eval
This commit is contained in:
parent
7a39775fff
commit
8fd4dcff7e
@ -78,9 +78,11 @@ function init_orbit_data(logger, sett::Settings; radius=2)
|
||||
end
|
||||
|
||||
function transform(U::AbstractArray, V::AbstractArray; sparse=false)
|
||||
w = U'*V*U
|
||||
sparse && w = sparsify(w)
|
||||
return w
|
||||
w = U'*V*U
|
||||
if sparse
|
||||
w = sparsify(w)
|
||||
end
|
||||
return w
|
||||
end
|
||||
|
||||
A(data::OrbitData, π, t) = data.dims[π]*transform(data.Us[π], data.cnstr[t], sparse=true)
|
||||
|
Loading…
Reference in New Issue
Block a user