Papers › PennyLane: Automatic differentiation of hybrid quantum-classical computations

PennyLane: Automatic differentiation of hybrid quantum-classical computations

12 Nov 2018arXiv:1811.04968archive 2025-07-28

Ville Bergholm, Josh Izaac, Maria Schuld, Christian Gogolin, Shahnawaz Ahmed, Vishnu Ajith, M. Sohaib Alam, Guillermo Alonso-Linaje, B. AkashNarayanan, Ali Asadi, Juan Miguel Arrazola, Utkarsh Azad, Sam Banning, Carsten Blank, Thomas R Bromley, Benjamin A. Cordier, Jack Ceroni, Alain Delgado, Olivia Di Matteo, Amintor Dusko, Tanya Garg, Diego Guala, Anthony Hayes, Ryan Hill, Aroosa Ijaz, Theodor Isacsson, David Ittah, Soran Jahangiri, Prateek Jain, Edward Jiang, Ankit Khandelwal, Korbinian Kottmann, Robert A. Lang, Christina Lee, Thomas Loke, Angus Lowe, Keri McKiernan, Johannes Jakob Meyer, J. A. Montañez-Barrera, Romain Moyard, Zeyue Niu, Lee James O'Riordan, Steven Oud, Ashish Panigrahi, Chae-Yeun Park, Daniel Polatajko, Nicolás Quesada, Chase Roberts, Nahum Sá, Isidor Schoch, Borun Shi, Shuli Shu, Sukin Sim, Arshpreet Singh, Ingrid Strandberg, Jay Soni, Antal Száva, Slimane Thabet, Rodrigo A. Vargas-Hernández, Trevor Vincent, Nicola Vitucci, Maurice Weber, David Wierichs, Roeland Wiersema, Moritz Willmann, Vincent Wong, Shaoming Zhang, Nathan Killoran

PennyLane is a Python 3 software framework for differentiable programming of quantum computers. The library provides a unified architecture for near-term quantum computing devices, supporting both qubit and continuous-variable paradigms. PennyLane's core feature is the ability to compute gradients of variational quantum circuits in a way that is compatible with classical techniques such as backpropagation. PennyLane thus extends the automatic differentiation algorithms common in optimization and machine learning to include quantum and hybrid computations. A plugin system makes the framework compatible with any gate-based quantum simulator or hardware. We provide plugins for hardware providers including the Xanadu Cloud, Amazon Braket, and IBM Quantum, allowing PennyLane optimizations to be run on publicly accessible quantum devices. On the classical front, PennyLane interfaces with accelerated machine learning libraries such as TensorFlow, PyTorch, JAX, and Autograd. PennyLane can be used for the optimization of variational quantum eigensolvers, quantum approximate optimization, quantum machine learning models, and many other applications.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

No sample from the archive's official repository (PennyLaneAI/pennylane) is linked to this paper; the 25 samples below come from 7 community repositories. Syntology harvested code from PennyLaneAI/pennylane for another paper.

PennyLaneAI/pennylane: Syntology's graph links these samples to Better than classical? The subtle art of benchmarking quantum machine learning models (arXiv:2403.07059; that paper's own run record: 2 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 2 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method.

Syntology 25 code samples harvested from 7 repositories linked to this paper: 17 ran (of which 0 constructed an object rather than computing a result; 17 with no instrument failure: 0 honoured, 0 violated, 17 with no contract checked; 0 where Syntology's instrument failed) · 8 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code; here there are none.

By repository: community (archive-listed): 25 samples from 7 repositories, 17 ran (17 with no instrument failure; 0 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

No sample is linked to this paper from 2 of its repositories that Syntology harvested for other papers:

Levels written on 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

27 repositories listed; official and paper-mentioned ones first.

PennyLaneAI/pennylane officialmentioned in papermentioned on GitHubtfApache-2.0Syntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Better than classical? The subtle art of benchmarking quantum machine learning models (arXiv:2403.07059; that paper's own run record: 2 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 2 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method. report
PennyLaneAI/PennyLane-IonQ mentioned on GitHubApache-2.0Syntology: 1 sample, 1 ran (0 instrument-failed) · 0 unverified report
PennyLaneAI/PennyLane-qsharp mentioned on GitHubApache-2.0Syntology: not harvested report
PennyLaneAI/pennylane-aqt mentioned on GitHubApache-2.0Syntology: 1 sample, 0 ran · 1 unverified report
PennyLaneAI/pennylane-cirq mentioned on GitHubApache-2.0Syntology: not harvested report
PennyLaneAI/pennylane-forest mentioned on GitHubBSD-3-ClauseSyntology: not harvested report
PennyLaneAI/pennylane-honeywell mentioned on GitHubApache-2.0Syntology: not harvested report
PennyLaneAI/pennylane-lightning mentioned on GitHubApache-2.0Syntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Hybrid quantum programming with PennyLane Lightning on HPC platforms (arXiv:2403.02512; that paper's own run record: 5 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 1 honoured, 0 violated, 3 with no contract checked; 1 where Syntology's instrument failed) · 1 unverified); nothing checks that they implement this paper's method. report
PennyLaneAI/pennylane-orquestra mentioned on GitHubApache-2.0Syntology: 5 samples, 2 ran (0 instrument-failed) · 3 unverified report
PennyLaneAI/pennylane-pq mentioned on GitHubApache-2.0Syntology: not harvested report
PennyLaneAI/pennylane-qiskit mentioned on GitHubApache-2.0Syntology: not harvested report
PennyLaneAI/pennylane-qulacs mentioned on GitHubApache-2.0Syntology: not harvested report
PennyLaneAI/pennylane-sf mentioned on GitHubApache-2.0Syntology: 4 samples, 3 ran (0 instrument-failed) · 1 unverified report
XanaduAI/PennyLane-qsharp mentioned on GitHubApache-2.0Syntology: not harvested report
XanaduAI/pennylane-aqt mentioned on GitHubApache-2.0Syntology: not harvested report
XanaduAI/pennylane-cirq mentioned on GitHubApache-2.0Syntology: not harvested report
XanaduAI/pennylane-honeywell mentioned on GitHubApache-2.0Syntology: not harvested report
XanaduAI/pennylane-plugin-template mentioned on GitHubApache-2.0Syntology: not harvested report
XanaduAI/pennylane-pq mentioned on GitHubApache-2.0Syntology: not harvested report
XanaduAI/pennylane-qiskit mentioned on GitHubApache-2.0Syntology: not harvested report
XanaduAI/pennylane-qulacs mentioned on GitHubApache-2.0Syntology: not harvested report
XanaduAI/pennylane-sf mentioned on GitHubApache-2.0Syntology: not harvested report
javierrd/Avoiding-Loc-Min-in-VQCs-with-NNs mentioned on GitHubpytorchSyntology: not harvested report
pwegrzyn/pennylane-extra mentioned on GitHubApache-2.0Syntology: not harvested report
qsar-ubc/pennylane_more_qutrit_ops mentioned on GitHubjaxApache-2.0Syntology: 1 sample, 1 ran (0 instrument-failed) · 0 unverified report
rickyHong/Pennylane-repl mentioned on GitHubtfApache-2.0Syntology: 10 samples, 7 ran (0 instrument-failed) · 3 unverified report
XanaduAI/qml pytorchApache-2.0Syntology: 3 samples, 3 ran (0 instrument-failed) · 0 unverified report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

25 samples harvested: 17 ran (of which 0 constructed an object rather than computing a result; 17 with no instrument failure: 0 honoured, 0 violated, 17 with no contract checked; 0 where Syntology's instrument failed) · 8 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

17ran
8unverified

Licence: 0 of the 25 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 7 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

PennyLaneAI/PennyLane-IonQ community (archive-listed) 1 sample, 1 ran (0 instrument-failed) · 0 unverified
join_path pennylane_ionq/api_client.py ran fingerprinted Apache-2.0 (permissive) · 926a0c52c0a8e6d1 · report fixture: signature base_path:str/0/str, path:str/0/str · returned str · level recorded 2026-09-26
PennyLaneAI/pennylane-aqt community (archive-listed) 1 sample, 0 ran · 1 unverified
submit pennylane_aqt/api_client.py unverified Apache-2.0 (permissive) · 4c36ad814b1904a1 · report
PennyLaneAI/pennylane-orquestra community (archive-listed) 5 samples, 2 ran (0 instrument-failed) · 3 unverified
gen_expval_workflow pennylane_orquestra/gen_workflow.py ran Apache-2.0 (permissive) · 8604d3350a948909 · report fixture: signature component:str/0/str, backend_specs:str/0/str, circuits:list/1/str, operators:list/1/str, resources:dict/0/? · returned dict · level recorded 2026-09-26
step_dictionary pennylane_orquestra/gen_workflow.py ran fingerprinted Apache-2.0 (permissive) · 7537760a0ac6306d · report fixture: signature name_suffix:str/0/str · returned dict · level recorded 2026-09-26
qe_get pennylane_orquestra/cli_actions.py unverified Apache-2.0 (permissive) · cc4ee4fe8190b2b3 · report
qe_submit pennylane_orquestra/cli_actions.py unverified Apache-2.0 (permissive) · 681b30d48abe1bad · report
workflow_details pennylane_orquestra/cli_actions.py unverified Apache-2.0 (permissive) · 0e6e371f224f4035 · report
PennyLaneAI/pennylane-sf community (archive-listed) 4 samples, 3 ran (0 instrument-failed) · 1 unverified
identity in 174 papers
census: 11 implementations from 39 papers, 3 distinct outputs across 2 buckets, one shared input per bucket
pennylane_sf/tf.py ran Apache-2.0 (permissive) · 77146336e1cc9ad4 · report fixture: signature state:MockState/0/?, device_wires:MockWires/0/?, params:list/1/empty · returned tuple · level recorded 2026-09-26
mean_photon pennylane_sf/expectations.py ran Apache-2.0 (permissive) · 625554f2a6953463 · report fixture: signature state:MockBaseState/0/?, device_wires:MockDeviceWires/0/?, params:list/1/empty · returned tuple · level recorded 2026-09-26
number_expectation pennylane_sf/expectations.py ran Apache-2.0 (permissive) · eea152a970cc177d · report fixture: signature state:MockState/0/?, device_wires:Wires/0/?, params:list/1/empty · returned tuple · level recorded 2026-09-26
fock_state pennylane_sf/tf.py unverified Apache-2.0 (permissive) · 959675708d40caf5 · report
qsar-ubc/pennylane_more_qutrit_ops community (archive-listed) 1 sample, 1 ran (0 instrument-failed) · 0 unverified
validate_subspace pennylane/ops/qutrit/parametric_ops.py ran Apache-2.0 (permissive) · c8dc05cdf18ae6f1 · report fixture: signature subspace:tuple/1/int · returned tuple · level recorded 2026-09-26
rickyHong/Pennylane-repl community (archive-listed) 10 samples, 7 ran (0 instrument-failed) · 3 unverified
classproperty pennylane/operation.py ran Apache-2.0 (permissive) · 6eee17f5bb82fbaa · report fixture: signature func:classmethod/0/? · returned ClassPropertyDescriptor · level recorded 2026-09-26
expand in 29 papers pennylane/utils.py ran Apache-2.0 (permissive) · 35c502b0db4f2e4f · report fixture: signature U:ndarray/2/float, wires:list/1/int, num_wires:int/0/int · returned ndarray · level recorded 2026-09-26
pop_jacobian_kwargs pennylane/qnode.py ran Apache-2.0 (permissive) · 3770a0d3001785fb · report fixture: signature kwargs:dict/0/? · returned dict · level recorded 2026-09-26
qnode pennylane/decorator.py ran Apache-2.0 (permissive) · 7f1cb3a0ba4031a5 · report fixture: signature device:MockDevice/0/?, interface:str/0/str, cache:bool/0/bool · returned _lru_cache_wrapper · level recorded 2026-09-26
random_layers_uniform pennylane/init.py ran Apache-2.0 (permissive) · cefe921e60332fed · report fixture: signature n_layers:int/0/int, n_wires:int/0/int, n_rots:int/0/int, low:int/0/int, high:float/0/float, seed:int/0/int · returned ndarray · level recorded 2026-09-26
strong_ent_layers_normal pennylane/init.py ran Apache-2.0 (permissive) · 94d06c27bbe1b329 · report fixture: signature n_layers:int/0/int, n_wires:int/0/int, mean:float/0/float, std:float/0/float, seed:int/0/int · returned ndarray · level recorded 2026-09-26
strong_ent_layers_uniform pennylane/init.py ran Apache-2.0 (permissive) · 9c804b1190402bc6 · report fixture: signature n_layers:int/0/int, n_wires:int/0/int, low:int/0/int, high:float/0/float, seed:int/0/int · returned ndarray · level recorded 2026-09-26
cov in 14 papers pennylane/measure.py unverified Apache-2.0 (permissive) · 694c24f2d3f0ed8f · report
expval pennylane/measure.py unverified Apache-2.0 (permissive) · 7ce2f7db6b6b4986 · report
var in 16 papers pennylane/measure.py unverified Apache-2.0 (permissive) · 5d9e2fb1c244a165 · report
XanaduAI/qml community (archive-listed) 3 samples, 3 ran (0 instrument-failed) · 0 unverified
make_html_figure lib/filter_helpers.py ran fingerprinted Apache-2.0 (permissive) · 6356c4143cf805e8 · report fixture: signature src:str/0/str, width:int/0/int · returned str · level recorded 2026-09-26
parse_body lib/filter_links.py ran fingerprinted Apache-2.0 (permissive) · 0ff02dde85492435 · report fixture: signature link:str/0/str · returned tuple · level recorded 2026-09-26
parse_img_source lib/filter_helpers.py ran fingerprinted Apache-2.0 (permissive) · aff87b997e59439b · report fixture: signature src:str/0/str · returned str · level recorded 2026-09-26

Tasks

BIG-bench Machine LearningQuantum Machine Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections