-
Notifications
You must be signed in to change notification settings - Fork 1
Fix some pyright issues #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 12 commits
57f1102
24bdee9
4aedcf8
7d01652
5b325e0
509055c
e6643e4
57b323c
f446c5a
ea5e94e
6c0c6e6
653bc6f
07c6380
4788445
d8a0534
29da51e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -190,7 +190,7 @@ def unwrap( | |
| stmt: squin.wire.Unwrap, | ||
| ): | ||
|
|
||
| origin_qubit = frame.get(stmt.qubit) | ||
| origin_qubit = frame.get_casted(stmt.qubit, AddressQubit) | ||
|
|
||
| return (AddressWire(origin_qubit=origin_qubit),) | ||
|
|
||
|
|
@@ -203,7 +203,10 @@ def apply( | |
| ): | ||
|
|
||
| origin_qubits = tuple( | ||
| [frame.get(input_elem).origin_qubit for input_elem in stmt.inputs] | ||
| [ | ||
| frame.get_casted(input_elem, AddressWire).origin_qubit | ||
| for input_elem in stmt.inputs | ||
| ] | ||
| ) | ||
| new_address_wires = tuple( | ||
| [AddressWire(origin_qubit=origin_qubit) for origin_qubit in origin_qubits] | ||
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.