Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@alan-geller
Copy link
Contributor

Fixes #27

@IrinaYatsenko
Copy link

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
Copy link
Contributor Author

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

Copy link
Contributor

@bettinaheim bettinaheim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @alan-geller!

@bettinaheim bettinaheim merged commit b629a86 into main Sep 25, 2020
@bettinaheim bettinaheim deleted the ageller/qir-fixes branch September 25, 2020 18:50
@bamarsha bamarsha mentioned this pull request Jun 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

QIR: function names should consistently use underscore instead of period

4 participants