来源信息
- 仓库
- brycewang-stanford/Auto-Empirical-Research-Skills
- 最近来源活动
- 2026年4月3日 02:07
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 3,291
- 分支
- 432
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
菜单
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills --skill quantum-computing-guide命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
中英双语学术降 AIGC / bilingual academic de-AIGC skill. Removes AI-generated writing signatures from empirical papers in economics, management, and the social sciences — in both English and Chinese. Covers Turnitin AI, GPTZero, Originality.ai on the English side and 知网 AMLC, 万方, 维普 on the Chinese side. Uses a six-step loop (intake → audit → claim-evidence check → differentiated rewrite → five-dimension self-score → cold-reader recheck) with two pattern libraries (22 English + 17 Chinese patterns), section-by-section strategies for empirical papers, and hard protections that keep every number, coefficient, and citation intact.
Use when a research task needs reproducible Kaggle discovery, metadata inspection, bounded public-data downloads, competition or kernel discovery, model discovery, or an explicitly approved Kaggle write/delete operation through the official CLI.
正在显示 SKILL.md
基于 SOC 职业分类
| name | quantum-computing-guide |
| description | Explore quantum computing research with Qiskit and Cirq frameworks |
| metadata | {"openclaw":{"emoji":"⚛️","category":"domains","subcategory":"physics","keywords":["quantum computing","Qiskit","Cirq","quantum circuits","qubit","quantum algorithms"],"source":"wentor-research-plugins"}} |
A skill for conducting quantum computing research using Qiskit (IBM) and Cirq (Google) frameworks. Covers quantum circuit construction, fundamental algorithms, noise simulation, and practical considerations for running experiments on quantum hardware.
Qubit: The basic unit of quantum information
- Superposition: A qubit can be in a state |0>, |1>, or any
linear combination alpha|0> + beta|1> where |alpha|^2 + |beta|^2 = 1
- Measurement: Collapses to |0> with probability |alpha|^2
or |1> with probability |beta|^2
Entanglement: Two qubits can be correlated in ways impossible classically
- Bell state: (|00> + |11>) / sqrt(2)
- Measuring one qubit instantly determines the other
Quantum gates: Unitary operations that transform qubit states
- Single-qubit: H (Hadamard), X (NOT), Z, S, T, Rx, Ry, Rz
- Two-qubit: CNOT, CZ, SWAP
- Multi-qubit: Toffoli (CCNOT), Fredkin (CSWAP)
from qiskit import QuantumCircuit
from qiskit_aer import AerSimulator
def create_bell_state() -> QuantumCircuit:
"""
Create a Bell state (maximally entangled pair).
"""
qc = QuantumCircuit(2, 2)
# Apply Hadamard to qubit 0 (creates superposition)
qc.h(0)
# Apply CNOT with qubit 0 as control, qubit 1 as target
qc.cx(0, 1)
# Measure both qubits
qc.measure([0, 1], [0, 1])
return qc
def run_circuit(qc: QuantumCircuit, shots: int = 1024) -> dict:
"""
Run a quantum circuit on a simulator.
Args:
qc: Quantum circuit to execute
shots: Number of measurement repetitions
"""
simulator = AerSimulator()
result = simulator.run(qc, shots=shots).result()
counts = result.get_counts()
return {
"counts": counts,
"probabilities": {
state: count / shots for state, count in counts.items()
}
}
def quantum_teleportation() -> QuantumCircuit:
"""
Implement quantum teleportation protocol.
Transfers the state of qubit 0 to qubit 2 using entanglement.
"""
qc = QuantumCircuit(3, 3)
# Prepare an arbitrary state on qubit 0
qc.rx(1.2, 0)
qc.rz(0.7, 0)
qc.barrier()
# Create entangled pair (qubits 1 and 2)
qc.h(1)
qc.cx(1, 2)
qc.barrier()
# Bell measurement on qubits 0 and 1
qc.cx(0, 1)
qc.h(0)
qc.measure([0, 1], [0, 1])
qc.barrier()
# Conditional corrections on qubit 2
qc.cx(1, 2)
qc.cz(0, 2)
qc.measure(2, 2)
return qc
| Algorithm | Speedup | Problem |
|---|---|---|
| Grover's | Quadratic (sqrt(N)) | Unstructured search |
| Shor's | Exponential | Integer factorization |
| VQE | Heuristic | Ground state energy |
| QAOA | Heuristic | Combinatorial optimization |
| Quantum Phase Estimation | Exponential | Eigenvalue estimation |
| HHL | Exponential (conditions apply) | Linear systems |
from qiskit.circuit.library import TwoLocal
def build_vqe_circuit(n_qubits: int, depth: int = 2) -> dict:
"""
Build a parameterized ansatz circuit for VQE.
Args:
n_qubits: Number of qubits
depth: Circuit depth (repetitions)
"""
ansatz = TwoLocal(
n_qubits,
rotation_blocks=["ry", "rz"],
entanglement_blocks="cx",
entanglement="linear",
reps=depth
)
return {
"circuit": ansatz,
"n_parameters": ansatz.num_parameters,
"description": (
"VQE uses a classical optimizer to minimize "
"<psi(theta)|H|psi(theta)> where psi(theta) is the "
"parameterized quantum state and H is the Hamiltonian."
)
}
from qiskit_aer.noise import NoiseModel, depolarizing_error
def create_noisy_simulator(error_rate: float = 0.01) -> dict:
"""
Create a noise model for realistic quantum simulation.
Args:
error_rate: Depolarizing error probability per gate
"""
noise_model = NoiseModel()
# Single-qubit gate error
error_1q = depolarizing_error(error_rate, 1)
noise_model.add_all_qubit_quantum_error(error_1q, ["h", "rx", "ry", "rz"])
# Two-qubit gate error (typically higher)
error_2q = depolarizing_error(error_rate * 10, 2)
noise_model.add_all_qubit_quantum_error(error_2q, ["cx"])
return {
"noise_model": noise_model,
"single_qubit_error": error_rate,
"two_qubit_error": error_rate * 10,
"mitigation_strategies": [
"Zero-Noise Extrapolation (ZNE)",
"Probabilistic Error Cancellation (PEC)",
"Measurement error mitigation",
"Dynamical decoupling",
"Quantum error correction (surface codes)"
]
}
1. Qubit connectivity:
Real devices have limited qubit connections (not all-to-all)
SWAP gates are needed to route operations -> increases circuit depth
2. Gate fidelity:
Single-qubit gates: ~99.9% fidelity
Two-qubit gates: ~99-99.5% fidelity
Limits useful circuit depth to ~100-1000 gates
3. Coherence times:
T1 (energy relaxation): 100-500 microseconds
T2 (dephasing): 50-200 microseconds
Circuit must complete before decoherence
4. Queue times:
Real quantum computers have job queues (minutes to hours)
Use simulators for development; reserve hardware for final runs
Report the exact device used (name, calibration date), number of qubits and connectivity, gate set and fidelities, transpilation settings, number of shots, error mitigation techniques applied, and comparison with classical simulation where tractable. Provide Qiskit or Cirq code in a public repository for reproducibility.