Skip to content

Commit

Permalink
Update releasenotes/notes/uniform-superposition-gate-3bd95ffdf05ef18c…
Browse files Browse the repository at this point in the history
….yaml


You're quite right, will help for others who might look at the code in future.

Co-authored-by: Luciano Bello <[email protected]>
  • Loading branch information
Hirmay and 1ucian0 authored Jun 22, 2024
1 parent 36b5d0b commit f57d8f2
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit f57d8f2

Please sign in to comment.