Skip to content
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

Error when concatenating WASM circuits #1546

Closed
yao-cqc opened this issue Aug 20, 2024 · 0 comments
Closed

Error when concatenating WASM circuits #1546

yao-cqc opened this issue Aug 20, 2024 · 0 comments
Assignees
Labels
bug Something isn't working classical-logic issues related to classical logical expressions

Comments

@yao-cqc
Copy link
Contributor

yao-cqc commented Aug 20, 2024

from pytket import Circuit
from pytket.wasm import WasmFileHandler

wasfile = WasmFileHandler("add1.wasm")
c = Circuit(1)
a = c.add_c_register("a", 8)
c.add_wasm_to_reg("add_one", wasfile, [a], [a])
d = Circuit()
d.append(c)
d

shows empty list: []

Adding ops to d can even lead to crash

wasfile = WasmFileHandler("add1.wasm")
c = Circuit(1)
a = c.add_c_register("a", 8)
c.add_wasm_to_reg("add_one", wasfile, [a], [a])

d = Circuit()
for bit in c.bits:
    d.add_bit(bit)
    d.add_c_setbits([False], [bit])
d.append(c)
d
@yao-cqc yao-cqc added the bug Something isn't working label Aug 20, 2024
@CalMacCQ CalMacCQ added the classical-logic issues related to classical logical expressions label Sep 16, 2024
@cqc-melf cqc-melf self-assigned this Oct 23, 2024
@cqc-melf cqc-melf mentioned this issue Nov 21, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working classical-logic issues related to classical logical expressions
Projects
None yet
Development

No branches or pull requests

3 participants