Classiq 0.45.0
Upgrade Instructions
- Python SDK
- The IDE upgrades automatically.
Enhancements
- Add
size
attribute to quantum variables:
=== "SDK"
[comment]: DO_NOT_TEST
``` python
@qfunc
def main(my_struct: Output[MyStruct]) -> None:
allocate(my_struct.size, my_struct)
```
=== "Native"
```
qfunc main(output my_struct: MyStruct) {
allocate(my_struct.size, my_struct);
}
```