Skip to content

Commit 3dbadd0

Browse files
committed
fix double integration example
1 parent a9f18ba commit 3dbadd0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/04_nb_examples.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ println("Result: ", res2, " (Expected: -1/16200)")
3838
println("\n--- Example 3: Multiple Unitaries ---")
3939
@variables dU_dim, dV_dim
4040
U = SymbolicMatrix(:U, :U, dU_dim)
41-
V = SymbolicMatrix(:V, :U, dV_dim)
41+
V = SymbolicMatrix(:V, :V, dV_dim)
4242
X = SymbolicMatrix(:X) # Constant matrix
4343

4444
# Complex expression with two independent unitaries
@@ -48,7 +48,7 @@ X = SymbolicMatrix(:X) # Constant matrix
4848
integrand3 = (U[1, 1] * V[1, 1]) * X[1, 1] * conj(U[1, 1] * V[1, 1])
4949

5050
println("Integrating over V...")
51-
tmp = integrate(integrand3, dU(dV_dim))
51+
tmp = integrate(integrand3, IntU.HaarMeasure(dV_dim, IntU.MetadataMatcher(:V)))
5252
println("Integrating over U...")
5353
res3 = integrate(tmp, dU(dU_dim))
5454
println("Result: ", res3)

0 commit comments

Comments
 (0)