QuTech-Delft / OpenSquirrel

A flexible (Python-based) quantum program compiler
Apache License 2.0
5 stars 2 forks source link

[CQT 126] Verify dataclasses using __post_init__ #319

Closed juanboschero closed 1 week ago

juanboschero commented 1 week ago

I would prefer a slightly different approach for the type checking.

This also raises the question of Int.__int__ and Float.__float__ should exists. Or... if Int and Float should exist at all.

This is indeed a conversation we need to have, an immediate example of this is CQT 183.