vectorspacelab/arex-skill/circuits-devices
Claude Code and agent skill by vectorspacelab/arex-skill
- community
Checking that the SKILL.md file is still in the repository.
"Build and debug PennyLane QNodes, devices, measurements, shots,
Install
npx vskill@latest install vectorspacelab/arex-skill/circuits-devicesSKILL.md
The same SKILL.md was published earlier as vectorspacelab/arex-skill/circuits-devices.
Circuits, QNodes, devices, and measurements
Use this sub-skill when the task asks how to create, execute, inspect, or debug PennyLane circuits. It owns QNodes, device selection, measurements, shots, drawing, mid-circuit measurement routing, and the device-test CLI.
Read first
- `references/api-reference.md`: signatures and core objects for
QNode,qnode,device, measurements, drawing, andexecute. - `references/workflows.md`: recipes for QNode creation, finite shots, drawing, and device-test checks.
- `references/troubleshooting.md`: device, wire, shot, measurement-shape, and mid-circuit failure modes.
- `scripts/qnode_smoke.py`: safe CPU QNode smoke script.
- `scripts/device_help.sh`: helper to display
pl-device-test --helpwhen the console script is installed.
Route within this sub-skill
- Basic circuit creation: use
qp.device(...), define a quantum function with operations, return measurement processes, and wrap it with@qp.qnode(dev)orqp.QNode(func, dev). - Device choice: start with
default.qubitfor ordinary pure-state CPU simulation; usedefault.mixedfor noisy/mixed-state workflows,default.cliffordfor Clifford circuits,default.tensorfor tensor-network style simulation,reference.qubitfor reference checks, andnull.qubitfor dry/resource-like runs. - Measurements: use
qp.expval,qp.var,qp.probs,qp.sample,qp.counts,qp.state,qp.density_matrix, entropy/purity/mutual-info functions, and shadows according to the requested return type. - Shots: analytic workflows use exact-style returns; sampling/counts require finite shots. Use
qp.set_shotsor QNode/device update methods when changing shot behavior. - Drawing/inspection: use
qp.draw(qnode)(*args)for text diagrams andqp.draw_mpl(qnode)(*args)for Matplotlib figures. - Plugin/device validation: use
pl-device-test --helpfirst, then choose explicit--device,--shots,--analytic, and--device-kwargsvalues.
Boundaries
- Operations/templates and circuit transforms are owned by `../operators-transforms/SKILL.md`.
- Gradients/interfaces/training are owned by `../gradients-interfaces/SKILL.md`.
- Domain modules such as qchem/qcut/resource are owned by `../applications-qchem-resource/SKILL.md`.
- Import/export, datasets, logging, and debugging snapshots are owned by `../io-data-logging/SKILL.md`, although snapshot measurements can be used inside circuits.
- Source-checkout test/lint policy is owned by `../repo-development/SKILL.md`.
Minimal pattern
Verification cues
A good answer or code change in this area should state the chosen device, wires, shot setting, measurement return shape, interface/diff assumptions if gradients are involved, and a tiny QNode smoke check. For source-checkout changes, native candidates include QNode, device, and measurement tests mirrored under tests/workflow/, tests/devices/, and tests/measurements/.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/repositories/repo-skills/pennylane/sub-skills/circuits-devices/SKILL.md
Popularity
- Repository stars
- 324
- Repository forks
- 25
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/vectorspacelab/arex-skill/circuits-devices)