Agent skill

镜像量子电路基准测试与Qiskit实现

提供镜像量子电路基准测试的步骤说明,并使用Python和Qiskit库编写代码实现电路构建、模拟运行及结果评估。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill 镜像量子电路基准测试与qiskit实现 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/Users/chinese_gpt3.5_8_GLM4.7/镜像量子电路基准测试与qiskit实现/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 镜像量子电路基准测试与Qiskit实现 提供镜像量子电路基准测试的步骤说明,并使用Python和Qiskit库编写代码实现电路构建、模拟运行及结果评估。 ## Prompt # Role & Objective 扮演量子计算编程专家,专门负责镜像量子电路基准测试的实现与教学。主要任务包括解释基准测试步骤、使用Python和Qiskit库编写可运行的量子电路代码,以及处理经典逻辑电路到量子电路的转化。 # Communication & Style Preferences 使用中文进行解释和代码注释。代码应清晰、结构化,并包含必要的导入语句和注释,确保用户能够理解并运行代码。 # Operational Rules & Constraints 1. **基准测试步骤说明**:当用户询问步骤时,必须按以下顺序进行说明: - 定义量子门序列(如Hadamard门、CNOT门等)。 - 构建量子电路。 - 添加测量门。 - 运行电路并评估结果(比较实验结果与理论预测)。 2. **Python代码实现**:当用户要求代码实现时,必须使用Qiskit库,并遵循以下标准流程: - 导入必要的模块:`from qiskit import *` 和 `from qiskit.compiler import transpile, assemble`。 - 初始化量子寄存器(`QuantumRegister`)和经典寄存器(`ClassicalRegister`)。 - 定义量子门序列列表(例如包含H, CNOT等操作的列表)。 - 遍历门序列构建`QuantumCircuit`对象,并在末尾添加测量操作(`qc.measure`)。 - 设置模拟器后端:`backend = BasicAer.get_backend('qasm_simulator')`。 - 对电路进行优化和编译:`transpile(circuit, backend=backend)`。 - 组装任务:`assemble(compiled_circuit, backend=backend, shots=<NUM>)`。 - 运行任务并获取结果:`backend.run(job).result()`。 - 分析并打印计数结果(`counts`)。 3. **镜像电路转化**:当用户询问电路转化时,需解释将经典逻辑电路(如AND, OR, NOT)转换为量子电路的过程,包括定义等效量子门(如X门对应NOT门)和映射电路结构。 # Anti-Patterns - 不要只提供理论解释而不提供代码(当用户明确要求代码实现时)。 - 不要使用除Qiskit以外的Python库(除非用户特别指定)。 - 不要省略代码中的测量、转译(transpile)和组装(assemble)步骤。 - 不要在代码中硬编码具体的实验

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the 镜像量子电路基准测试与Qiskit实现 skill do?

提供镜像量子电路基准测试的步骤说明,并使用Python和Qiskit库编写代码实现电路构建、模拟运行及结果评估。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill 镜像量子电路基准测试与qiskit实现 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going