Skip to main content
13 events
when toggle format what by license comment
Apr 5, 2023 at 7:15 vote accept narip
Mar 31, 2023 at 17:15 answer added Roland F timeline score: 1
Mar 31, 2023 at 13:02 answer added narip timeline score: 0
Mar 31, 2023 at 8:36 history edited narip CC BY-SA 4.0
added 1729 characters in body
Mar 31, 2023 at 8:25 comment added narip @Roman I'll do it right now. But the code relies on installing a package in the link I gave. I'm not sure if I can also add it to the code. PS thanks for your two technical suggestions. I think it will work.
Mar 31, 2023 at 8:19 comment added Roman Can you please edit your post so that the code can be copy-pasted into a notebook and will actually run? Please don't expect people to piece it together by themselves.
Mar 31, 2023 at 8:08 comment added Roman Use sparse Pauli matrices for speed: Clear[σ, emat]; σ[i_] := σ[i] = SparseArray[PauliMatrix[i]]; emat[i_Integer, j_Integer, k_Integer, l_Integer] := emat[i, j, k, l] = KroneckerProduct[σ[i], σ[j], σ[k], σ[l]] will give you memoized, sparse, quick access to the emat values without forcing a pre-compute.
Mar 31, 2023 at 8:07 comment added Roman You are recomputing IntegrateUnitaryHaar[UV.emat[[j]].ConjugateTranspose[UV],{u,15},{v,1}] for every value of i instead of memoizing it.
Mar 31, 2023 at 6:48 history edited narip CC BY-SA 4.0
deleted 1 character in body
Mar 31, 2023 at 6:38 comment added narip @Syed Thanks for pointing out those. I edited my post.
Mar 31, 2023 at 6:38 history edited narip CC BY-SA 4.0
added 2543 characters in body
Mar 31, 2023 at 6:11 comment added Syed To make the before/after comparison more effective you can include timing information from AbsoluteTiming. Also, include the output of $Version to your post. What type of entries does emat have? Please include emat and UV. In short, please present a minimal example and include definitions.
Mar 31, 2023 at 5:54 history asked narip CC BY-SA 4.0