Commit d5a591c
#1975 removed two deprecated public symbols from `tket-py`, breaking
downstream users before a deprecation cycle had run its course. This
restores them while keeping that PR's non-breaking drive-by fixes.
### Restored
- `tket.passes.NormalizeGuppy` — deprecated alias of `Normalize`, plus
its `__all__` entry and `test_normalize_guppy_deprecated_alias`.
- `tket.metadata.PytketPhaseExpr` — deprecated metadata key
(`TKET1.phase`), plus its `__all__` entry.
```python
from tket.passes import NormalizeGuppy # DeprecationWarning: Use `Normalize` instead.
from tket.metadata import PytketPhaseExpr
```
### Kept from #1975
- Doc-example fixes and the added `ExpectedQubitsHint` entry in
`tket.metadata.__all__`.
### Notes
- The `_QSystemLLVMPass` → `QSystemLLVMPass` rename listed in #1975's
description was never actually applied in code, so there is nothing to
revert there.
- Unrelated pre-existing nit, left alone: the `tket/metadata.py` module
docstring example imports `MaxQubitsHint` but uses `ExpectedQubitsHint`.
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: aborgna-q <121866228+aborgna-q@users.noreply.github.com>
1 parent c96e334 commit d5a591c
3 files changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
295 | 303 | | |
296 | 304 | | |
297 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
200 | 213 | | |
201 | 214 | | |
202 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
229 | 236 | | |
230 | 237 | | |
231 | 238 | | |
| |||
0 commit comments