Skip to content

Commit

Permalink
typing for Circuit.stats
Browse files Browse the repository at this point in the history
  • Loading branch information
akissinger committed Jul 11, 2021
1 parent 49a16d6 commit 77e85a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyzx/circuit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.

import os
from typing import List, Union, Optional, Iterator
from typing import List, Union, Optional, Iterator, Dict

import numpy as np

Expand Down Expand Up @@ -443,7 +443,7 @@ def stats_dict(self, depth: bool = False) -> dict:
if isinstance(g, CNOT): cnot += 1
else:
other += 1
d = dict()
d : Dict[str, Union[str,int]] = dict()
d["name"] = self.name
d["qubits"] = self.qubits
d["gates"] = total
Expand Down

0 comments on commit 77e85a8

Please sign in to comment.