Skip to content

Commit

Permalink
update QumodeRegister __len__ docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tjstavenger-pnnl committed Jul 18, 2022
1 parent ea793e9 commit aff7a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2qa/qumoderegister.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __getitem__(self, key):
return self.qreg[start:stop:step]

def __len__(self):
"""The length of a QumodeRegister is the number of qumodes (not the number of qubits * number of qumodes)"""
"""The length of a QumodeRegister is the number of qumodes (not the num_qumodes * num_qubits_per_qumode)"""
return self.num_qumodes


Expand Down

0 comments on commit aff7a79

Please sign in to comment.