From: miha-q <> Date: Thu, 15 Aug 2024 00:41:07 +0000 (-0400) Subject: Wed Aug 14 08:41:07 PM EDT 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=a336e6520d5b88badc180b1b8e4ec4e224eb65d9;p=QAnsel.git Wed Aug 14 08:41:07 PM EDT 2024 --- diff --git a/src/bytecode.h b/src/bytecode.h index 71af0f2..50b0ee7 100644 --- a/src/bytecode.h +++ b/src/bytecode.h @@ -26,6 +26,24 @@ typedef struct int use_ifop; } QBytecode; +/* + IMPORTANT NOTE + + (AB)^T = (A^T)(B^T) + + In quantum mechanics, if the relative state is S, then evolving + the relative state by a logic gate A requires computing AS. + + This is inefficient as S is a column vector and it is more + efficient in terms of caching to use a row vector. Hence, the + simulator does not store S but only S^T. To apply the logic + gate A, it is not AS that needs to be computed but instead + (S^T)(A^T). + + This means all the logic gates stored below are represented + as their transposed equivalents. +*/ + static float Identity[] = { 1, 0, 0, 0, diff --git a/src/imports/welcome.png b/src/imports/welcome.png new file mode 100644 index 0000000..85e112e Binary files /dev/null and b/src/imports/welcome.png differ diff --git a/src/index.html b/src/index.html index 17936d2..24bba2b 100644 --- a/src/index.html +++ b/src/index.html @@ -72,7 +72,7 @@
ð | ð§¹ | ð¾ | @@ -80,7 +80,7 @@ð | â¶ | ð· | -ð | +ð | â | â |