From 3789791973ca3fb35d07306c298bddade0040801 Mon Sep 17 00:00:00 2001 From: Martin Elsman Date: Sun, 24 Nov 2024 18:09:40 +0100 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8348cad..3433397 100644 --- a/README.md +++ b/README.md @@ -115,10 +115,10 @@ Result distribution when evaluating c on |101> : `Diagram` structure and extend the `Circuit.draw` function to draw controlled control-gates using the new functionality. -7. Write an "optimiser" that takes a circuit and replaced it with an "optimised" - circuits with the same or fewer gates. For instance, incorporate the identity +7. Write an "optimiser" that takes a circuit and replaces it with an "optimised" + circuit with the same or fewer gates. For instance, incorporate the identity `I = H ** H`. Maybe use the identity (_A_ `**` _B_ `oo` _D_ ** _E_ = (_A_ - `oo` _D_) ** (_B_ `oo` _E_), given appropriate dimension restrictions, to + `oo` _D_) ** (_B_ `oo` _E_), given appropriate dimension restrictions and associativity of `**`, to make your optimiser recognise more opportunities. 8. Write a recursive function `inverse` that takes a circuit and returns the