Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
correct num_inputs on SXGate
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfLink committed Oct 2, 2022
1 parent dd6274e commit b8842cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qsearch/gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def __repr__(self):
class SXGate(Gate):
"""Represents a sqrt(X) rotation on one qubit, which is equivalent to XGate() with a paramter of pi/2, up to an overall phase."""
def __init__(self):
self.num_inputs = 1
self.num_inputs = 0
self.qudits = 1
self.sx = unitaries.sqrt_x

Expand Down

0 comments on commit b8842cd

Please sign in to comment.