Skip to content

Commit

Permalink
fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
austingmhuang committed Jul 24, 2024
1 parent 69ba8d5 commit 133f011
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pennylane/registers.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ def circuit():
for i in range(len(reg["phi"])):
qml.CSWAP(reg["aux"] + reg["phi"][i] + reg["psi"][i])
qml.Hadamard(reg["aux"])
return qml.expval(qml.Z(wires=reg["aux"]))
>>> circuit()
0.9999999999999996
>>> circuit()
0.9999999999999996
"""

def _registers(register_dict, _start_wire_index=0):
Expand Down

0 comments on commit 133f011

Please sign in to comment.