快速开始¶
启动单个服务器¶
启动特定的量子系统服务器:
# 启动超导量子服务器(默认端口7000)
python main.py --system superconducting
# 启动离子阱量子服务器(默认端口7001)
python main.py --system ion_trap
# 启动中性原子量子服务器(默认端口7002)
python main.py --system neutral_atom
# 启动光量子服务器(默认端口7003)
python main.py --system photonic
启动所有服务器¶
同时启动所有四个量子系统服务器:
python main.py --all
启动服务器(自动包含发布服务器)¶
启动一个服务器时,会自动同时启动路由服务器和发布服务器:
python main.py --system superconducting
输出示例:
============================================================
Starting superconducting Quantum Simulation Server
============================================================
superconducting server is running
- Router Port: 7000
- Pub Port: 8000
- Bind Address: 0.0.0.0
- Log Level: INFO
- Thread Pool Size: 4
- Max Queue Size: 1000
Press Ctrl+C to stop server
自定义配置¶
# 自定义端口(仅影响路由端口)
python main.py --system superconducting --port 7005
# 自定义绑定地址
python main.py --system superconducting --bind-address 192.168.1.100
# 设置日志级别
python main.py --system superconducting --log-level DEBUG
命令行参数说明¶
--system {superconducting,ion_trap,neutral_atom,photonic}
要模拟的量子系统类型
--all 启动所有量子系统服务器
--port PORT 覆盖默认端口
--log-level {DEBUG,INFO,WARNING,ERROR}
设置日志级别(默认:INFO)
--bind-address ADDRESS 绑定地址(默认:*)