Skip to content

Commit

Permalink
Set maximum bit width for classical operations according to pytket su…
Browse files Browse the repository at this point in the history
…pport (#190)

* Set maximum bit width for classical operations according to pytket support.
  • Loading branch information
cqc-alec committed Jun 18, 2024
1 parent 4f213cc commit a381df6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytket/phir/phirgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

from typing_extensions import assert_never

import pytket
import pytket.circuit as tk
from phir.model import PHIRModel
from pytket.circuit.logic_exp import (
Expand Down Expand Up @@ -44,7 +45,7 @@
"version": "0.1.0",
"metadata": {"source": f'pytket-phir v{version("pytket-phir").split("+")[0]}'},
}
UINTMAX = 2**32 - 1
UINTMAX = 2 ** (64 if pytket.__dict__.get("bit_width_64", False) else 32) - 1

Var: TypeAlias = str
Bit: TypeAlias = list[Var | int] # e.g. [c, 0] for c[0]
Expand Down

0 comments on commit a381df6

Please sign in to comment.