One-click install
npx skills add https://github.com/silverstein/claude-scientific-skills-desktop --skill pennylane-silverstein
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pennylane
Source: https://github.com/silverstein/claude-scientific-skills-desktop/tree/main/corpus/pennylane
Command: npx skills add https://github.com/silverstein/claude-scientific-skills-desktop --skill pennylane-silverstein

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you implement quantum computing workflows—quantum circuits, variational algorithms, and quantum chemistry—using a framework that supports automatic differentiation and runs across simulators and hardware.

Core Features & Use Cases

  • Device-independent quantum circuit execution: Define circuits once and run on different backends (simulators and quantum hardware via plugins).
  • Automatic differentiation for training: Compute gradients for hybrid quantum-classical optimization using simulator-friendly backprop or hardware-compatible parameter-shift.
  • Quantum algorithms across domains: Apply the same tooling to quantum ML (QNNs/variational classifiers), chemistry (VQE, molecular Hamiltonians), and general circuit construction/optimization.

Quick Start

Use this skill to implement a hybrid VQE workflow by building a PennyLane device, defining a QNode with an ansatz and Hamiltonian expectation, and then optimizing parameters with an optimizer like Adam or gradient descent.

Frequently Asked Questions about pennylane

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compute gradients for quantum circuits during model training?

To compute gradients for quantum circuits during model training, you can use automatic differentiation frameworks that support both simulator backpropagation and hardware-compatible parameter-shift rules for hybrid quantum-classical optimization.

Can I run the same variational quantum algorithm on both simulators and real quantum hardware?

Yes, you can run the same variational quantum algorithm on both simulators and quantum hardware by defining device-independent QNodes that execute across different backends through compatible plugins without changing the circuit definition.

What is the best way to implement a VQE workflow for molecular Hamiltonians?

The best way to implement a VQE workflow for molecular Hamiltonians is to build a quantum device, define a QNode with an ansatz and Hamiltonian expectation, and then optimize circuit parameters using gradient descent or Adam optimizers.

Does automatic differentiation work for quantum machine learning models like variational classifiers?

Automatic differentiation does work for quantum machine learning models like variational classifiers and quantum neural networks by enabling gradient-based parameter optimization across hybrid quantum-classical architectures using simulator-friendly or hardware-compatible methods.

What are the limitations of using parameter-shift rules for hardware-compatible differentiation?

Parameter-shift rules for hardware-compatible differentiation require additional circuit evaluations per parameter compared to simulator backpropagation, increasing execution time on quantum hardware and limiting scalability for circuits with large parameter sets.