Metadata-Version: 2.4
Name: qubecli
Version: 1.0.16
Summary: QubeCore CLI — Command Line Interface for QubeCore
License: MIT License
        
        Copyright (c) 2026 QubeCore Project
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: qubecore-client>=1.0.18
Requires-Dist: typer>=0.12.0
Provides-Extra: dev
Requires-Dist: mypy>=1.8.0; extra == 'dev'
Requires-Dist: ruff>=0.1.0; extra == 'dev'
Description-Content-Type: text/markdown

# QubeCLI

Command Line Interface for QubeCore — Quantum Computing Operating System.

---

## Installation

```bash
pip install qubecli
```

---

## Quick Start

```bash
qubecore config set host 192.168.1.100:50051
qubecore login
qubecore submit --circuit 'OPENQASM 2.0; include "qelib1.inc"; qreg q[2]; creg c[2]; h q[0]; cx q[0],q[1]; measure q->c;' --shots 1000
qubecore result --job-id <job_id>
```

---

## Commands

### Auth
```bash
qubecore login [--username admin] [--password Admin1234!]
qubecore logout
qubecore me
```

### Config
```bash
qubecore config set host 192.168.1.100:50051   # 서버 주소 저장
qubecore config get                             # 전체 설정 조회
qubecore config get host                        # 특정 키 조회
qubecore config unset host                      # 설정 삭제
qubecore --host 10.0.0.1:50051 <command>        # 일회성 서버 지정
qubecore -v                                     # 버전 출력
qubecore help                                   # 명령어 전체 안내
```

### Submit
```bash
# 게이트 회로 (QASM 2.0 / 3.0 / JSON 지원)
qubecore submit --circuit '<QASM>' --shots 1000
qubecore submit --circuit '<QASM>' --shots 1000 --priority 2 --optimization-level 1

# 펄스 프로그램
qubecore submit-pulse --pulse '<JSON>' --shots 1000
qubecore submit-pulse --pulse '<JSON>' --shots 1000 --priority 1

# 큐비트 리셋
qubecore submit-reset --qubits qubit_0,qubit_1 --shots 100

# 캘리브레이션
qubecore submit-calibration --calibration-type widescan --params '<JSON>'
qubecore submit-calibration --calibration-type punchout  --params '<JSON>'
```

> `--priority`: 1=CRITICAL 2=HIGH 3=NORMAL(기본) 4=LOW  
> `--optimization-level`: 0~3 (submit, stream 전용)

### Stream
```bash
qubecore stream \
  --template 'OPENQASM 2.0; include "qelib1.inc"; qreg q[1]; creg c[1]; rx({theta}) q[0]; measure q[0]->c[0];' \
  --params '[{"theta": 0.0}, {"theta": 1.5707}, {"theta": 3.1415}]' \
  --shots 200
```

### Job
```bash
qubecore status --job-id <job_id>
qubecore result --job-id <job_id>
qubecore cancel --job-id <job_id>
qubecore jobs
qubecore jobs --page 2 --size 10
```

### QPU INFO
```bash
qubecore backend-info
qubecore characterization

# admin 전용
qubecore update-characterization --data '{"last_calibrated":"2026-05-13T00:00:00Z","qubits":[{"index":0,"t1":1.1e-4,"t2":9.8e-5,"frequency":4.85e9}]}'
qubecore update-qchip --updates '[{"qubit":"qubit_0","freq":4.85e9,"readfreq":6.5e9,"gates":[{"gate_name":"X90","amp":0.5,"twidth":20e-9}]}]'
```

