[Question] javascript/typescript/wasm support
See original GitHub issue@dstrain115 Firstly, I must admit that this is a great library. Thanks a lot! Secondly, I have a few questions:
- Do you plan to implement javascript/typescript, say,
Cirq.js
library in order to have a huge community of javascript devs? - if you’re not really sure about separated javascript library, what do you think about something akin to https://github.com/quantastica/qconvert-js in order to have a javascript representation of this library that can we easily converted to
*.py
and can be run on Python? - If both above is not feasible, apparently worth it considering the usage of Pyodide in order to have a portable WASM library?
Issue Analytics
- State:
- Created 4 years ago
- Comments:13
Top Results From Across the Web
TypeScript to WebAssembly: The What, The How And The Why
Bit supports Node, TypeScript, React, Vue, Angular, and more. ... A Complete Introduction to WebAssembly and Its JavaScript API ...
Read more >Generate WebAssembly With AssemblyScript: a TypeScript ...
Learn how to write WebAssembly code with the familiarity of a TypeScript-like language, create low-level code with the existing web ...
Read more >Support JavaScript/Typescript for WASM modules
You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange ......
Read more >johnfn/blazingscript: TypeScript to WASM compiler - GitHub
BlazingScript compiles idiomatic TypeScript to WebAssembly. ... No problem: call it as if it was normal JavaScript and everything will magically work.
Read more >AssemblyScript
A TypeScript-like language for WebAssembly. ... AssemblyScript targets WebAssembly's feature set specifically, ... Thank you so much for your support!
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think the goal of ArturJS would be to fully run Cirq in the browser as a webassembly package.
Would be interesting to see working, and pyodide certainly would help. Performance of Cirq would however be unknown, but maybe not really a dramatic decrease. With eg Quirk as frontend the use cases would exist.
For example, I ported pyzx to pyodide and experimented with combing in the browser C++ code for circuit compilation to use quirk as frontend. All code below still experimental.
[1] https://quantumresource.github.io/zxQentiana/ [2] https://alexandrupaler.github.io/quantjs/
Indeed there are more projects doing quantum-something with webassembly. A useful use case could be where GUI and framework are joined.