From a39bb3b8aab1aeb4fceaedc54c756703819776c3 Mon Sep 17 00:00:00 2001 From: Prefetch Date: Sat, 17 Dec 2022 18:19:26 +0100 Subject: Rewrite "Lagrange multiplier", various improvements --- source/know/concept/toffoli-gate/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/know/concept/toffoli-gate/index.md') diff --git a/source/know/concept/toffoli-gate/index.md b/source/know/concept/toffoli-gate/index.md index b9d9528..9a99e69 100644 --- a/source/know/concept/toffoli-gate/index.md +++ b/source/know/concept/toffoli-gate/index.md @@ -66,10 +66,10 @@ it swaps the last two coefficients: $$\begin{aligned} \mathrm{CCNOT} \Ket{\psi} - &= \mathrm{CCNOT} \big( c_{000} \Ket{000} + c_{001} \Ket{001} + c_{010} \Ket{010} + c_{011} \Ket{011} \\ + &= \mathrm{CCNOT} \big( c_{000} \Ket{000} + c_{001} \Ket{001} + c_{010} \Ket{010} + c_{011} \Ket{011} + \\ &\qquad\qquad\quad\:\; c_{100} \Ket{100} + c_{101} \Ket{101} + c_{110} \Ket{110} + c_{111} \Ket{111} \big) \\ - &= c_{000} \Ket{000} + c_{001} \Ket{001} + c_{010} \Ket{010} + c_{011} \Ket{011} \\ + &= c_{000} \Ket{000} + c_{001} \Ket{001} + c_{010} \Ket{010} + c_{011} \Ket{011} + \\ &\quad\,\, c_{100} \Ket{100} + c_{101} \Ket{101} + c_{111} \Ket{110} + c_{110} \Ket{111} \end{aligned}$$ -- cgit v1.2.3