From f147315a7663f5a876af46797ca9b4ebfea1104f Mon Sep 17 00:00:00 2001 From: Matthew Harrigan Date: Mon, 7 Nov 2022 14:43:30 -0800 Subject: [PATCH] Improve generic select documentation (#105) * Improve generic select documentation * try new docstring * re-render * re-render after merging main * one line * Re-render --- cirq_qubitization/generic_select.ipynb | 39 ++++++++++--------- cirq_qubitization/generic_select.py | 31 ++++++++------- .../jupyter_autogen_factories.py | 18 +++------ 3 files changed, 42 insertions(+), 46 deletions(-) diff --git a/cirq_qubitization/generic_select.ipynb b/cirq_qubitization/generic_select.ipynb index 9a93d9aba..917db3b13 100644 --- a/cirq_qubitization/generic_select.ipynb +++ b/cirq_qubitization/generic_select.ipynb @@ -7,7 +7,9 @@ "cq.autogen": "title_cell" }, "source": [ - "# Generic Select" + "# Generic Select\n", + "\n", + "Gates for applying generic selected unitaries." ] }, { @@ -35,12 +37,21 @@ }, "source": [ "## `GenericSelect`\n", - "Gate that implements SELECT for a Hamiltonian expressed as an LCU.\n", + "A SELECT gate for selecting and applying operators from an array of `PauliString`s.\n", + "\n", + "$$\n", + "\\mathrm{SELECT} = \\sum_{l}|l \\rangle \\langle l| \\otimes U_l\n", + "$$\n", + "\n", + "Where $U_l$ is a member of the Pauli group.\n", "\n", - "Recall: SELECT = \\sum_{l}|l>