npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

qcomputesdk-ts

v1.0.2

Published

QComputeSDK-TS is the TypeScript language version of QComputeSDK (Python), the client of the Baidu quantum computing platform.

Readme

QComputeSDK-TypeScript

QComputeSDK-TypeScript is the TypeScript version of QCompute, the quantum development kit of Quantum Leaf. QComputeSDK-TypeScript can be used to design quantum experiments: build quantum circuits, manipulate quantum modules, and run quantum computing tasks on Quantum Leaf (https://quantum-hub.baidu.com). The user, via QComputeSDK-TypeScript, can use all quantum-ends on the cloud, including QPUs and cloud simulators.

QComputeSDK-TypeScript is suitable for the circumstances when:

  • The targeted platform does not support Python;
  • The targeted platform depends on TypeScript, JavaScript packages, or other languages.
  • The user needs to use QComputeSDK on front-ends such as Web or ReactNative.

Otherwise, we highly suggest the developer use QComputeSDK-Python, which is more fully featured, reference functional comparison. (https://github.com/baidu/QCompute).

Platform Requirements

The source code can run on any platform that supports Node.js.

  • Node.js >=19.4.0
  • TypeScript >=4.9.4

Install and Execute

Enviroment Configuration

  1. Install Node.js environment. https://nodejs.org

  2. Install TypeScript compiler.

npm install -g typescript
npm install -g ts-node

Install QComputeSDK-TypeScript

Method 1 - Install via NPM

npm install qcomputesdk-ts

Method 2 - Install via source code

  1. Download QComputeSDK-TypeScript source code.
git clone https://github.com/baidu/QComputeSDK-TS.git
  1. Install NPM requirements.
cd QComputeSDK-TS
npm i

Run Example

Running the example code QComputeSDK-TS\Example\GHZ_Cloud.ts.

  1. Input your Token into GHZ_Cloud.ts. Token is an authorization credential for using cloud quantum computing resources, which can be obtained from the Quantum-hub website.
// Your token:
Define.hubToken = '';
  1. Run the example code.
ts-node Example/Level_1/GHZ_Cloud.ts
  1. The results would be displayed as follows.
    Circuit upload successful, circuitId => 165538 taskId => 162654
    Task 162654 is running, please wait...
    status changed waiting => success
    Download origin success /home/user/QComputeSDK-TS/Output/remote.162654.origin.json size = 779
    Download measure success /home/user/QComputeSDK-TS/Output/remote.162654.measure.json size = 24
    {"counts":{"000":518,"111":506},"moduleList":[{"arguments":null,"module":"UnrollProcedureModule"},{"arguments":null,"module":"CompositeGateModule"},{"arguments":null,"module":"UnrollCircuitModule"},{"arguments":null,"module":"CompressGateModule"}],"origin":"/home/user/QComputeSDK-TS/Output/remote.162654.origin.json","status":"success","taskId":162654}
    done

Developer hints

  • Developer can use GHZ_Cloud.ts as source code framework. Modify and apply this file can significantly mitigate the learning task.
  • API usage can reference “Manual/MANUAL.md”.

Contributing

Coding requirements:

  1. Be familiar with quantum circuit model. Any pull should be tested first and then submitted. Be careful about the order of qubits.

  2. Please comply with development specifications of relevant programming languages.

Discussion

  1. If any questions/advices/suggestions, please contact us via Email: [email protected] ;

  2. Or, you can use feedback table in Quantum-hub to provide any feedbacks;

  3. Or, you are also welcomed to join our discussion QQ group. Scan the QR code below or search by QQ group number 1147781135.

Maintainers & Authors

Institute for Quantum Computing, Baidu.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.