Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
austingmhuang committed Jul 25, 2024
1 parent 7864662 commit b4909ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pennylane/registers.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ def registers(register_dict):
**Example**
Given flat input dictionary:
>>> qml.registers({"alice": 2, "bob": 3})
{'alice': Wires([0, 1]), 'bob': Wires([2, 3, 4])}
Given nested input dictionary:
>>> wire_registers = qml.registers({"people": {"alice": 2, "bob": 1}})
>>> wire_dict
{'alice': Wires([0, 1]), 'bob': Wires([2]), 'people': Wires([0, 1, 2])}
Expand Down

0 comments on commit b4909ce

Please sign in to comment.