From 2960a634f6f38a74f8ecce8aab5a6bb7b0736c47 Mon Sep 17 00:00:00 2001 From: Hirmay Sandesara <56473003+Hirmay@users.noreply.github.com> Date: Tue, 16 Apr 2024 19:01:21 +0530 Subject: [PATCH] Update release note --- ...m-superposition-gate-3bd95ffdf05ef18c.yaml | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/releasenotes/notes/generalized-uniform-superposition-gate-3bd95ffdf05ef18c.yaml b/releasenotes/notes/generalized-uniform-superposition-gate-3bd95ffdf05ef18c.yaml index 01c26114c10..c4531138806 100644 --- a/releasenotes/notes/generalized-uniform-superposition-gate-3bd95ffdf05ef18c.yaml +++ b/releasenotes/notes/generalized-uniform-superposition-gate-3bd95ffdf05ef18c.yaml @@ -1,10 +1,19 @@ -prelude: > - +--- features: - | - Implemented GeneralizedUniformSuperpositionGate class, which allows the creation of a generalized uniform superposition state using the Shukla-Vedula algorithm [SV24]. This feature facilitates the creation of quantum circuits that produce a uniform superposition state $\frac{1}{\sqrt{M}} \sum_{j=0}^{M-1} \ket{j}$, where $M$ is a positive integer representing the number of computational basis states with an amplitude of $\frac{1}{\sqrt{M}}$. This implementation supports the efficient creation of uniform superposition states, requiring only $O(\log_2 (M))$ qubits and $O(\log_2 (M))$ gates. - Usage example: - ```python + Implemented GeneralizedUniformSuperpositionGate class, which allows + the creation of a generalized uniform superposition state using + the Shukla-Vedula algorithm [SV24]. This feature facilitates the + creation of quantum circuits that produce a uniform superposition + state $\frac{1}{\sqrt{M}} \sum_{j=0}^{M-1} \ket{j}$, where $M$ + is a positive integer representing the number of computational + basis states with an amplitude of $\frac{1}{\sqrt{M}}$. This + implementation supports the efficient creation of uniform + superposition states, requiring only $O(\log_2 (M))$ qubits + and $O(\log_2 (M))$ gates. Usage example: + + .. code-block:: python + from qiskit import GeneralizedUniformSuperpositionGate, QuantumCircuit M = 5 @@ -13,4 +22,3 @@ features: qc = QuantumCircuit(n) qc.append(usp_gate, list(range(n))) qc.draw('mpl',style="clifford") - ```