microsoft / qsharp-language

Official repository for design of the quantum programming language Q# and its core libraries
MIT License
235 stars 56 forks source link

Issue #27 All runtime function names use __, not . #29

Closed alan-geller closed 3 years ago

alan-geller commented 3 years ago

Fixes #27

IrinaYatsenko commented 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. |

alan-geller commented 3 years ago

The first push had everything in Quantum-Runtime.md, the second should have all the rest.