Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

pennylane

Skill by K-Dense-AI

Builds and differentiates PennyLane quantum circuits, hybrid PyTorch or JAX models, and molecular VQE and QAOA workflows. It is for researchers working on variational quantum algorithms and quantum machine learning.

  • Score 94
  • 59k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install pennylane

Built from the published package, never by AI.

git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/pennylane ~/.claude/skills/pennylane

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install pennylane in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an AI assistant through building parameterized PennyLane quantum circuits and checking them before use. It targets stable PennyLane 0.45.1 and covers QNodes, gradients, optimization, and hybrid models with PyTorch or JAX. It also covers molecular VQE and QAOA workflows, with steps for validating results against classical references.

The skill is written for researchers and developers doing variational quantum algorithms, quantum machine learning, or simulator validation. It recommends checking known values and gradients first, recording seeds and package versions, and reporting uncertainty. For hardware-specific compilation it points to qiskit or cirq, and for open-system dynamics it points to qutip.

Written from the project's SKILL.md and checked against it.

What it can do

  • Circuit buildingBuilds small analytic default.qubit circuits and separates the quantum function from the QNode.
  • Gradient checksChecks values and gradients against analytic or finite-difference results before training.
  • Quantum MLRuns hybrid classifier training with PyTorch TorchLayer or JAX, with feature scaling and evaluation.
  • Molecular VQESets up chemistry workflows such as H2 UCCSD, with unit, particle sector and active space checks.
  • QAOA and MaxCutCovers QAOA workflows, MaxCut sign handling and exact QUBO-to-Ising conversion.
  • Noise and shotsIntroduces finite shots and noise, and reports uncertainty and decomposed resources.
  • Device selectionDescribes simulators and provider plugin contracts, and how to choose an accessible backend.

What you need

  • Python 3.11 or newer
  • PennyLane 0.45.1 with NumPy 2 or newer
  • Optional PyTorch, JAX or provider plugins in compatible environments
  • Provider credentials and network access for hardware runs

Try asking

  • Build a one-qubit PennyLane circuit and check its gradient against the analytic result
  • Set up an H2 UCCSD VQE workflow with explicit units and particle sector checks
  • Train a hybrid PyTorch quantum classifier and report held-out accuracy and a classical baseline

Good to know

  • Local examples use small synthetic systems.
  • Successful optimization does not establish quantum advantage, molecular accuracy or hardware fidelity.
  • Plugin portability does not guarantee identical gates, measurements or gradients.
  • Provider hardware, GPU, Catalyst and external chemistry backends were not run with authenticated jobs.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/pennylane/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Read Bash Python

  • SKILL.md7 KB
  • references/advanced_features.md8 KB
  • references/devices_backends.md9 KB
  • references/getting_started.md4 KB
  • references/optimization.md7 KB
Show all 8 files
  • references/quantum_chemistry.md7 KB
  • references/quantum_circuits.md5 KB
  • references/quantum_ml.md6 KB

Alternatives to pennylane

All alternatives →

Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database

pennylane: common questions

Does PennyLane need credentials to run?

Local simulation needs no credentials. Hardware runs require provider credentials and network access.

Which PennyLane version does this skill target?

The skill targets stable PennyLane 0.45.1 and states that the latest JAX may not be supported by this release.

When should I use a different skill instead?

For hardware-specific compilation the source points to qiskit or cirq, and for open-system dynamics it points to qutip.

How do I install pennylane?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is pennylane free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is pennylane safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to pennylane?

Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.

pennylane Install

Add to stack

Loading.