question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:closed
  • Created 4 years ago
  • Comments:13

github_iconTop GitHub Comments

3reactions
alexandrupalercommented, Mar 12, 2020

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/

1reaction
alexandrupalercommented, Mar 12, 2020

Indeed there are more projects doing quantum-something with webassembly. A useful use case could be where GUI and framework are joined.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found