-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/persistent-token-storage
- Loading branch information
Showing
22 changed files
with
707 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__extension_version__ = "0.23.0" | ||
__extension_version__ = "0.25.0" | ||
__extension_name__ = "pytket-quantinuum" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Create a C file containing | ||
|
||
```c | ||
void init() {} | ||
``` | ||
|
||
at the top, and any other int-to-int functions below. | ||
|
||
Run: | ||
|
||
```shell | ||
clang --target=wasm32 -mmultivalue -Xclang -target-abi -Xclang experimental-mv --no-standard-libraries -Wl,--export-all -Wl,--no-entry -o <filename>.wasm <filename>.c | ||
``` | ||
|
||
to generate the wasm file. | ||
|
||
(Multi-valued functions should be implemented using C functions that return a | ||
struct composed of ints.) | ||
|
||
You can then run: | ||
|
||
```shell | ||
wasm2wat <filename>.wasm -o <filename>.wast | ||
``` | ||
|
||
to convert the WASM to human-readable text format. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
void init() {} | ||
|
||
int add_one(int n) { | ||
return n + 1; | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
(module | ||
(type (;0;) (func)) | ||
(type (;1;) (func (param i32) (result i32))) | ||
(func $__wasm_call_ctors (type 0)) | ||
(func $init (type 0) | ||
return) | ||
(func $add_one (type 1) (param i32) (result i32) | ||
(local i32 i32 i32 i32 i32 i32) | ||
global.get $__stack_pointer | ||
local.set 1 | ||
i32.const 16 | ||
local.set 2 | ||
local.get 1 | ||
local.get 2 | ||
i32.sub | ||
local.set 3 | ||
local.get 3 | ||
local.get 0 | ||
i32.store offset=12 | ||
local.get 3 | ||
i32.load offset=12 | ||
local.set 4 | ||
i32.const 1 | ||
local.set 5 | ||
local.get 4 | ||
local.get 5 | ||
i32.add | ||
local.set 6 | ||
local.get 6 | ||
return) | ||
(memory (;0;) 2) | ||
(global $__stack_pointer (mut i32) (i32.const 66560)) | ||
(global (;1;) i32 (i32.const 1024)) | ||
(global (;2;) i32 (i32.const 1024)) | ||
(global (;3;) i32 (i32.const 1024)) | ||
(global (;4;) i32 (i32.const 66560)) | ||
(global (;5;) i32 (i32.const 0)) | ||
(global (;6;) i32 (i32.const 1)) | ||
(export "memory" (memory 0)) | ||
(export "__wasm_call_ctors" (func $__wasm_call_ctors)) | ||
(export "init" (func $init)) | ||
(export "add_one" (func $add_one)) | ||
(export "__dso_handle" (global 1)) | ||
(export "__data_end" (global 2)) | ||
(export "__global_base" (global 3)) | ||
(export "__heap_base" (global 4)) | ||
(export "__memory_base" (global 5)) | ||
(export "__table_base" (global 6))) |
Oops, something went wrong.