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

Increase allowed number of classical registers #164

Closed
irfankhan10 opened this issue Aug 20, 2024 · 4 comments
Closed

Increase allowed number of classical registers #164

irfankhan10 opened this issue Aug 20, 2024 · 4 comments
Assignees

Comments

@irfankhan10
Copy link

irfankhan10 commented Aug 20, 2024

When translating a pytket circuit with more than 64 registers to a QIR program, there is a runtime error raised. This is due to a check performed during conversion. This check needs to accept circuits with greater than 64 registers. The H-Series device will support circuits containing up to 1000 classical registers.

def check_circuit(

@cqc-melf
Copy link
Collaborator

For me this works, can you give some more details about the issue?
I have tested this circuit:

    c = Circuit(0, 0, name="test_large_number_of_registers")
    for i in range(100):
        a = c.add_c_register(f"a_{i}", 10)
        c.add_c_setreg(32, a)

@cqc-melf cqc-melf self-assigned this Aug 20, 2024
@cqc-alec
Copy link
Collaborator

The check in the code is for the maximum size of any register, not for the number of registers; I don't see a limit on that?

@irfankhan10
Copy link
Author

Thanks for clarifying

@cqc-melf
Copy link
Collaborator

Can we close this then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants