← Back

Quantum Computing CLI

Live

Signature capability

The hardware results carry job IDs and raw shot counts, so the fidelities can be recomputed by anyone who doubts them. An ideal simulator would have returned 500/500 and no off-basis counts.

What it is

The tool wraps the pyQPanda3 SDK behind a single quantum command so agents and humans can build, run, and visualize quantum circuits without touching the underlying Python API. It runs canonical circuits (Bell pairs, GHZ states, Quantum Fourier Transform), simulates arbitrary user-defined gate lists, encodes classical data into quantum states, and generates quantum random numbers. Every command supports a --json flag for machine consumption, and an interactive REPL is available for exploration. Beyond simulation it submits jobs to live cloud hardware, including a 72-qubit QPU, and applies these primitives to quant-finance use cases.

Highlights

  • 13 subcommands (bell, ghz, qft, simulate, encode, montecarlo, random, vqc, draw, wordhunt, backends, cloud, repl), all with --json agent output.
  • Custom circuits via JSON gate lists over 25+ gates (H, X/Y/Z, S, T, rotations, CNOT, CZ, SWAP, TOFFOLI, controlled-phase, ISWAP, and more).
  • Five data-encoding schemes and variational quantum circuits with parameterized ansatze.
  • Verified against real hardware, not a simulator: 1,000-shot Bell and GHZ circuits submitted to Origin Quantum's 72-qubit QPU, job IDs 087252BB…343363 and CF187533…AD5D2. Bell fidelity 0.630, 3-qubit GHZ fidelity 0.452, with the error spread across the off-basis states that only real decoherence produces.
  • Capability suite of 25 integration tests (23 passing) plus a 34-test unit/E2E suite running in ~2s.
  • ASCII circuit visualization and a cloud-backend discovery command listing online QPUs and simulators.

Tech · Python 3.9+, pyQPanda3 (Origin Quantum SDK), Click 8, prompt-toolkit, NumPy; local state-vector and density-matrix simulators plus a cloud QPU service.

Download brief (PDF)