Closed alan-geller closed 3 years ago
There are more of them:
Classical-Runtime.md:| quantum.rt.heap_alloc | i8*(i32)
| Allocate a block of memory on the heap. |
Classical-Runtime.md:| quantum.rt.heap_free | void(i8*)
| Release a block of allocated heap memory. |
Classical-Runtime.md:| quantum.rt.fail | void(%String*)
| Fail the computation with the given error message. |
Code-Generation.md: intermediate representation structures and elide calls to quantum.rt.free
Quantum-Runtime.md:| quantum.rt.qubit_allocate | %Qubit*()
| Allocates a single qubit. |
Quantum-Runtime.md:| quantum.rt.qubit_allocate_array | %Array*(i64)
| Allocates an array of qubits. |
Quantum-Runtime.md:| quantum.rt.qubit_release | void(%Qubit*)
| Release a single qubit. |
Quantum-Runtime.md:| quantum.rt.qubit_release_array | void(%Array*)
| Release an array of qubits. |
Quantum-Runtime.md:| quantum.rt.qubit_borrow | %Qubit*()
| Borrow a single qubit. |
Quantum-Runtime.md:| quantum.rt.qubit_borrow_array | %Array*(i64)
| Borrow an array of qubits. |
Quantum-Runtime.md:| quantum.rt.qubit_return | void(%Qubit*)
| Return a borrowed qubit. |
Quantum-Runtime.md:| quantum.rt.qubit_return_array | void(%Array*)
| Return an array of borrowed qubits. |
The first push had everything in Quantum-Runtime.md, the second should have all the rest.
Fixes #27