Skip to content

Commit

Permalink
Update uniform-superposition-gate-3bd95ffdf05ef18c.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hirmay authored Apr 28, 2024
1 parent f9881c1 commit 810d65a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ features:
superposition states, requiring only $O(\log_2 (M))$ qubits
and $O(\log_2 (M))$ gates. Usage example:
.. plot:: python
.. code-block:: python
from qiskit import UniformSuperpositionGate, QuantumCircuit
M = 5
n = 3
usp_gate = UniformSuperpositionGate(M, n)
qc = QuantumCircuit(n)
qc.append(usp_gate, list(range(n)))
qc.draw('mpl',style="clifford")
qc.draw()

0 comments on commit 810d65a

Please sign in to comment.