Meta tags:
description= Quick reference for PennyLane devices, QNodes, gradients, templates, and quantum machine learning patterns.;
author= QuantumComputingCourses.com;
Headings (most frequently used words):
pennylane, quantum, and, background, history, installation, key, imports, core, concepts, gates, measurements, gradients, variational, eigensolver, vqe, templates, common, patterns, vs, qiskit, cirq, tutorials, other, python, frameworks, where, to, go, next, get, one, email, week, device, qnode, bell, state, circuit, drawing, transfer, learning, learn, reference, careers, about,
Text of the page (most frequently used words):
qml (70), pennylane (46), wires (41), #quantum (40), and (35), the (27), #circuit (18), for (16), qiskit (14), framework (13), dev (13), hardware (12), qubit (11), learning (11), tutorials (11), device (11), params (11), amazon (10), this (10), guide (10), courses (10), cirq (10), templates (10), qnode (10), computing (9), braket (9), pauliz (9), return (9), reference (8), frameworks (8), range (8), from (7), circuits (7), jax (7), all (6), variational (6), gradients (6), python (6), are (6), ibm (6), machine (6), def (6), default (6), import (6), install (6), algorithm (5), hello (5), world (5), same (5), gates (5), through (5), google (5), with (5), you (5), that (5), differentiable (5), expval (5), weights (5), numpy (5), via (5), pip (5), has (5), xanadu (5), 2026 (4), hadamard (4), about (4), history (4), research (4), sdk (4), patterns (4), measurements (4), key (4), cnot (4), features (4), gradient (4), automatic (4), theta (4), backend (4), lightning (4), was (4), com (3), team (3), training (3), careers (3), docs (3), glossary (3), case (3), studies (3), tools (3), one (3), step (3), major (3), sdks (3), index (3), language (3), next (3), common (3), eigensolver (3), vqe (3), core (3), concepts (3), imports (3), installation (3), background (3), page (3), other (3), hamiltonian (3), advanced (3), choose (3), when (3), gate (3), swap (3), its (3), plugin (3), true (3), print (3), bell (3), state (3), built (3), ansatz (3), simulator (3), gpu (3), backends (3), most (3), use (2), cookies (2), your (2), affiliate (2), performance (2), policy (2), terms (2), books (2), podcasts (2), events (2), faq (2), jobs (2), interview (2), certifications (2), salary (2), programming (2), bloch (2), sphere (2), timeline (2), types (2), news (2), compare (2), paths (2), free (2), learn (2), references (2), quantumcomputing (2), email (2), new (2), week (2), guides (2), every (2), side (2), syntax (2), full (2), read (2), comparison (2), each (2), where (2), algorithms (2), quera (2), minutes (2), min (2), error (2), mitigation (2), active (2), these (2), run (2), instead (2), running (2), need (2), deep (2), control (2), over (2), feature (2), set (2), their (2), target (2), layer (2), vendor (2), they (2), own (2), project (2), want (2), inside (2), pytorch (2), tensorflow (2), architecture (2), code (2), basicentanglerlayers (2), normalize (2), amplitudeembedding (2), probs (2), opt (2), array (2), grad (2), jnp (2), interface (2), grad_fn (2), parameter (2), shift (2), rule (2), main (2), measurement (2), counts (2), value (2), qnodes (2), single (2), toffoli (2), controlled (2), not (2), execution (2), aer (2), fast (2), support (2), differentiation (2), since (2), content (2), alongside (2), development (2), focus (2), photonic (2), first (2), version (2), sections (2), wave (2), accept, decline, improve, experience, track, see, our, cookie, privacy, disclosure, llc, quantumcomputingcourses, associate, earn, qualifying, purchases, contact, editorial, site, talent, pool, post, job, questions, cheatsheets, written, maintained, who, writes, industry, zeitgeist, donovan, curated, anyone, 241, 220, 112, subscribe, address, worth, taking, what, changed, spam, unsubscribe, anytime, get, across, filterable, dictionaries, puts, documented, here, runs, neutral, atom, analog, simulation, bloqade, unified, aws, fully, managed, service, noise, aware, intermediate, zne, pec, nisq, space, methods, chemistry, generative, adversarial, networks, priority, specifically, transpilation, runtime, access, fullest, sycamore, family, processors, native, abstraction, convenient, portability, but, sits, above, rather, than, replacing, fine, grained, offer, fundamentally, problem, sitting, model, just, another, prototyping, optimizers, freely, also, means, can, without, rewrite, hybrid_model, transfer, matplotlib, figure, draw_mpl, draw, drawing, qaoaembedding, angleembedding, stronglyentanglinglayers, provides, pre, ground, energy, 100, gradientdescentoptimizer, requires_grad, define, advantage, statevector, raw, samples, sample, probability, distribution, variance, var, alternatives, valid, position, expectation, returns, chooses, which, values, euler, decomposition, rot, phi, omega, arbitrary, unitary, rotation, angles, radians, pauliy, paulix, result, wraps, function, binds, equivalent, combined, named, executes, real, differs, way, defined, functions, decorated, plain, accelerated, plugins, optional, covers, needs, grown, steadily, release, 000, github, stars, large, library, demos, educational, hosted, invested, heavily, community, building, qhack, hackathon, series, maintaining, discussion, forum, widely, used, academic, become, commonly, taught, university, continues, rapid, pace, frequent, releases, adding, optimizations, integration, classical, been, central, supports, autograd, allowing, embedded, layers, within, standard, pipelines, high, simulators, developed, provide, local, initial, designed, agnostic, outset, allows, cross, platform, approach, filled, important, gap, ecosystem, time, were, tightly, coupled, created, canadian, company, founded, 2016, christian, weedbrook, released, november, 2018, specific, distinguished, existing, treats, computational, graphs, enabling, computation, operations, using, techniques, like, design, made, purpose, pennylaneai, source, copy, glance, quick, devices, home, browse, search, troubleshooting, prep, universities, career, cheat, sheets, migration, pinball, prerequisites, explore, ocean, tket, pyquil, shor, grover, rigetti, azure, quantinuum, ionq, providers, brilliant, udemy, edx, coursera, course, platforms, skip, dictionary,
Text of the page (random words):
pennylane reference dictionary skip to main content quantumcomputing courses com courses all courses course platforms coursera edx udemy brilliant hardware providers google quantum ai ibm quantum ionq quantinuum amazon braket azure quantum quera rigetti d wave tutorials all tutorials hello world qiskit hello world cirq hello world pennylane hello world braket quantum gates grover s algorithm shor s algorithm reference all frameworks qiskit cirq pennylane amazon braket pyquil tket d wave ocean q explore learn learning paths prerequisites programming guide case studies glossary books quantum news podcasts tools bloch sphere quantum pinball guides algorithm guide hardware guide qubit types framework comparison migration guide language timeline cheat sheets career events 2026 jobs careers certifications salary guide universities interview prep faq troubleshooting about about team search browse courses home reference pennylane framework reference pennylane xanadu s framework for quantum machine learning and differentiable quantum computing python version 0 45 x 11 sections quick reference for pennylane devices qnodes gradients templates and quantum machine learning patterns in this guide 11 sections 01 background and history 02 installation 03 key imports 04 core concepts 05 gates 06 measurements 07 gradients 08 variational quantum eigensolver vqe 09 templates 10 common patterns 11 pennylane vs qiskit and cirq at a glance language python version 0 45 x install pip install pennylane copy docs docs pennylane ai source pennylaneai pennylane background and history pennylane was created by xanadu a canadian quantum computing company founded in 2016 by christian weedbrook the framework was first released in november 2018 with a specific focus that distinguished it from existing tools differentiable quantum computing pennylane treats quantum circuits as differentiable computational graphs enabling automatic gradient computation through quantum operations using techniques like the parameter shift rule this design made it the first framework purpose built for quantum machine learning and variational quantum algorithms xanadu s initial research focus was photonic quantum computing and pennylane was designed to be hardware agnostic from the outset its plugin architecture allows the same quantum circuit code to run on backends from ibm via pennylane qiskit google via pennylane cirq amazon via pennylane braket and xanadu s own photonic hardware this cross platform approach filled an important gap in the ecosystem since most other frameworks at the time were tightly coupled to a single vendor s hardware pennylane s integration with classical machine learning frameworks has been a central feature it supports automatic differentiation through numpy via autograd pytorch tensorflow and jax allowing quantum circuits to be embedded as layers within standard deep learning pipelines the lightning qubit and lightning gpu high performance simulators developed alongside pennylane provide fast local execution for development and research the project has grown steadily since its release as of 2026 pennylane has over 3 000 github stars and a large library of tutorials demos and educational content hosted at pennylane ai xanadu has invested heavily in community building running the qhack quantum hackathon series and maintaining an active discussion forum pennylane is widely used in academic quantum machine learning research and has become one of the most commonly taught quantum frameworks in university courses alongside qiskit development continues at a rapid pace with frequent releases adding new features optimizations and hardware backend support installation pip install pennylane backend plugins optional pennylane s default qubit covers most needs pip install pennylane qiskit ibm backends pip install amazon braket pennylane plugin amazon braket backends pip install pennylane lightning gpu gpu accelerated key imports import pennylane as qml import pennylane numpy as np use this instead of plain numpy for gradients core concepts pennylane differs from qiskit cirq in a key way circuits are defined inside python functions decorated with qml qnode and they support automatic differentiation for training device a device is the backend that executes your circuit simulator or real hardware dev qml device default qubit wires 2 built in simulator dev qml device default qubit wires a b named wires dev qml device lightning qubit wires 4 fast c simulator dev qml device qiskit aer wires 2 qiskit aer backend qnode a qnode wraps a quantum function and binds it to a device this is pennylane s equivalent of a circuit execution combined qml qnode dev def circuit params qml ry params 0 wires 0 qml cnot wires 0 1 return qml expval qml pauliz 0 result circuit 0 5 gates qml hadamard wires 0 h qml paulix wires 0 x not qml pauliy wires 0 y qml pauliz wires 0 z qml s wires 0 s gate qml t wires 0 t gate qml cnot wires 0 1 controlled not qml cz wires 0 1 controlled z qml swap wires 0 1 swap qml toffoli wires 0 1 2 toffoli rotation gates angles in radians qml rx theta wires 0 qml ry theta wires 0 qml rz theta wires 0 arbitrary single qubit unitary qml rot phi theta omega wires 0 z y z euler decomposition measurements pennylane measurements are return values from qnodes a qnode returns one measurement and that return value chooses which qml qnode dev def circuit qml hadamard wires 0 return qml expval qml pauliz 0 expectation value the alternatives each valid in that same return position qml var qml pauliz 0 variance qml probs wires 0 1 probability distribution qml sample qml pauliz 0 raw samples qml counts wires 0 1 measurement counts qml state full statevector gradients this is pennylane s main advantage circuits are differentiable automatic gradient via parameter shift rule grad_fn qml grad circuit gradient grad_fn 0 5 jax interface dev qml device default qubit wires 2 qml qnode dev interface jax def circuit params qml ry params 0 wires 0 return qml expval qml pauliz 0 import jax import jax numpy as jnp gradient jax grad circuit jnp array 0 5 variational quantum eigensolver vqe import pennylane as qml from pennylane import numpy as np define a hamiltonian h qml hamiltonian 0 5 0 5 qml pauliz 0 qml pauliz 1 dev qml device default qubit wires 2 qml qnode dev def ansatz params qml ry params 0 wires 0 qml ry params 1 wires 1 qml cnot wires 0 1 return qml expval h params np array 0 1 0 2 requires_grad true opt qml gradientdescentoptimizer 0 1 for _ in range 100 params opt step ansatz params print ground state energy ansatz params templates pennylane provides pre built circuit templates qml templates basicentanglerlayers weights wires range 4 qml templates stronglyentanglinglayers weights wires range 4 qml templates angleembedding features wires range 4 qml templates amplitudeembedding features wires range 4 normalize true qml templates qaoaembedding features weights wires range 4 common patterns bell state dev qml device default qubit wires 2 qml qnode dev def bell qml hadamard wires 0 qml cnot wires 0 1 return qml probs wires 0 1 print bell 0 5 0 0 0 5 circuit drawing print qml draw circuit 0 5 qml draw_mpl circuit 0 5 matplotlib figure quantum transfer learning qml qnode dev def hybrid_model x weights qml amplitudeembedding x wires range 4 normalize true qml basicentanglerlayers weights wires range 4 return qml expval qml pauliz 0 pennylane vs qiskit and cirq choose pennylane when a project is fundamentally a machine learning problem you need gradients through a circuit you want that circuit sitting inside a pytorch tensorflow or jax model as just another differentiable layer or you are prototyping a variational algorithm and want to swap optimizers freely its plugin architecture also means the same circuit code can target ibm google or amazon hardware without a rewrite choose qiskit instead when the priority is running on ibm hardware specifically and you need deep control over transpilation error mitigation through qiskit runtime or access to ibm s fullest feature set choose cirq when google s sycamore family processors and their native gate set are the target pennylane s device abstraction is convenient for portability but it sits a layer above these vendor sdks rather than replacing the fine grained control they offer on their own hardware pennylane tutorials this page is the syntax these are the 26 tutorials where you run it quantum generative adversarial networks with pennylane advanced 70 minutes active space methods for quantum chemistry in pennylane advanced 40 min pennylane error mitigation zne and pec for nisq circuits intermediate 22 min read noise aware training for variational quantum circuits advanced 70 minutes all 26 pennylane tutorials other python frameworks amazon braket aws s fully managed quantum computing service and python sdk amazon braket sdk unified sdk for quantum computing on amazon braket bloqade quera s framework for neutral atom quantum computing and analog hamiltonian simulation cirq google s python framework for quantum circuits and algorithms where to go next the reference index puts pennylane next to the other 25 frameworks documented here and the comparison page runs the same circuit through each of the major sdks reference index compare frameworks on this page 01 background and history 02 installation 03 key imports 04 core concepts 05 gates 06 measurements 07 gradients 08 variational quantum eigensolver vqe 09 templates 10 common patterns 11 pennylane vs qiskit and cirq read next all 26 framework dictionaries the full index filterable by language the same circuit in every framework side by side syntax across the major sdks framework tutorials step by step hello world guides for every major quantum sdk get one quantum email a week new tutorials courses worth taking and what changed in qiskit cirq pennylane this week no spam unsubscribe anytime email address subscribe 112 courses 220 tutorials 241 glossary terms 26 framework references 34 case studies quantumcomputing courses com free tutorials curated courses framework references and tools for anyone learning quantum computing written and maintained by dr donovan who writes on quantum computing research hardware and industry at quantum zeitgeist learn all courses free tutorials learning paths compare frameworks algorithm guide case studies quantum news reference glossary framework docs hardware guide qubit types history timeline cheatsheets bloch sphere quantum programming careers careers guide salary guide certifications interview questions jobs team training post a job talent pool about about this site editorial policy team faq events 2026 podcasts books contact as an amazon associate i earn from qualifying purchases 2026 hadamard llc quantumcomputingcourses com affiliate disclosure privacy terms cookies we use cookies to improve your experience and track affiliate performance see our cookie policy decline accept
|