From f57d8f2e9470050723db9d39e69b9b5d0f1b4b4a Mon Sep 17 00:00:00 2001 From: Hirmay Sandesara <56473003+Hirmay@users.noreply.github.com> Date: Sat, 22 Jun 2024 23:05:13 +0530 Subject: [PATCH] Update releasenotes/notes/uniform-superposition-gate-3bd95ffdf05ef18c.yaml You're quite right, will help for others who might look at the code in future. Co-authored-by: Luciano Bello --- .../uniform-superposition-gate-3bd95ffdf05ef18c.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/releasenotes/notes/uniform-superposition-gate-3bd95ffdf05ef18c.yaml b/releasenotes/notes/uniform-superposition-gate-3bd95ffdf05ef18c.yaml index ac8340f1a1a..92b835ec789 100644 --- a/releasenotes/notes/uniform-superposition-gate-3bd95ffdf05ef18c.yaml +++ b/releasenotes/notes/uniform-superposition-gate-3bd95ffdf05ef18c.yaml @@ -17,8 +17,9 @@ features: from qiskit import UniformSuperpositionGate, QuantumCircuit M = 5 - n = 3 - usp_gate = UniformSuperpositionGate(M, n) - qc = QuantumCircuit(n) - qc.append(usp_gate, list(range(n))) + num_qubits = 3 + usp_gate = UniformSuperpositionGate(M, num_qubits) + qc = QuantumCircuit(num_qubits) + qc.append(usp_gate, list(range(num_qubits))) + qc.draw()