From 4e12a8556c347e7a29a06f040a4fd99006204f47 Mon Sep 17 00:00:00 2001 From: Aaron Trowbridge Date: Mon, 13 May 2024 11:45:15 -0400 Subject: [PATCH] minor unitary infidelity edit --- src/objectives.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objectives.jl b/src/objectives.jl index e0425f2e..9816de4e 100644 --- a/src/objectives.jl +++ b/src/objectives.jl @@ -215,7 +215,7 @@ function UnitaryInfidelityObjective(; Ũ⃗_slice = slice(Z.T, Z.components[name], Z.dim) Ũ⃗ = Z⃗[Ũ⃗_slice] ∇l = l(Ũ⃗; gradient=true) - ∇[Ũ⃗_slice] .= Q * ∇l + ∇[Ũ⃗_slice] = Q * ∇l return ∇ end