SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.02512 · 2024

Hybrid quantum programming with PennyLane Lightning on HPC platforms

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2403.02512.json · badge: /api/ran/2403.02512.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
PennyLaneAI/pennylane-lightning canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
pennylaneai/lightning-on-hpc canonical (classifier label)
classifier basis: census
2 ran · 0 no recorded run
FunctionStatusWhere it lives
decompose_dense Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
PennyLaneAI/pennylane-lightning/pennylane_lightning/lightning_tensor/_tensornet.py
code served (permissive licence) · get_code("e2262b782491f4f4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

np.random.seed(0)

# For decompose_dense, we need:
# - psi: np.ndarray (state vector or gate matrix)
# - n_wires: int (number of wires)
# - site_shape: list[int] (shape of the site tensor)
# - max_bond_dim: int (maximum bond dimension)
# - canonical_right: bool (optional, defaults to True)

# Let's construct a small example:
# We'll create a state for n_wires=3 with site_shape=[2] (qubits)
# This means each site has dimension 2

n_wires = 3
site_shape = [2]
max_bond_dim = 4

# The input psi should be reshapeable to match the MPS structure
# For n_wires=3 with site_shape=[2], the total dimension is 2^3 = 8
# We create a simple state vector of size 8
psi = np.random.randn(8)

ARGS = {
    "psi": psi,
    "n_wires": n_wires,
    "site_shape": site_shape,
    "max_bond_dim": max_bond_dim,
    "canonical_right": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_depth Ran
ran, honoured the contract we drafted
pennylaneai/lightning-on-hpc/DataCollection/distributed/Perlmutter_LGPU_QAOA/QAOA_QCUT_BATCHED_CUDA12/common_utils.py
code served (permissive licence) · get_code("e3d1f6b76796f6b5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

class MockTape:
    def __init__(self, depth, num_wires):
        self.specs = {'depth': depth}
        self.wires = list(range(num_wires))

tape1 = MockTape(depth=5, num_wires=3)
tape2 = MockTape(depth=8, num_wires=7)
tape3 = MockTape(depth=3, num_wires=2)

tapes = [tape1, tape2, tape3]

ARGS = {
    'tapes': tapes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gate_matrix_decompose Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
PennyLaneAI/pennylane-lightning/pennylane_lightning/lightning_tensor/_tensornet.py
code served (permissive licence) · get_code("ef9c13cbbdc1e3cd")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a simple 2-qubit gate matrix (4x4 for 2 qubits)
# For a 2-qubit gate, the matrix should be 4x4 (2^2 x 2^2)
np.random.seed(0)
gate_matrix = np.random.randn(4, 4) + 1j * np.random.randn(4, 4)
gate_matrix = gate_matrix.astype(np.complex128)

# Create the wires list
wires = [0, 1]

# Maximum MPO bond dimension
max_mpo_bond_dim = 4

# Complex dtype
c_dtype = np.complex128

ARGS = {
    "gate_ops_matrix": gate_matrix,
    "wires": wires,
    "max_mpo_bond_dim": max_mpo_bond_dim,
    "c_dtype": c_dtype,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
global_phase_diagonal Ran
ran; our contract draft was wrong, not the code
PennyLaneAI/pennylane-lightning/pennylane_lightning/lightning_base/_serialize.py
code served (permissive licence) · get_code("7ec5f3a09ec0af44")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (8,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Analyzing the function:
# - par: appears to be a scalar (used in np.exp(-1j * par))
# - wires: used in len(wires) and iteration [2 for _ in wires], should be a list/array
# - controls: converted to np.array, used in np.argsort, zip with control_values
# - control_values: converted to np.array, used in zip with controls, converted to int

# Constructing minimal valid arguments:
par = 0.5  # scalar parameter for the phase

wires = [0, 1, 2]  # list of wire indices, length determines output size 2^3=8

controls = [0, 1]  # control wire indices

control_values = [1, 0]  # control values corresponding to each control

ARGS = {
    "par": par,
    "wires": wires,
    "controls": controls,
    "control_values": control_values,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (8,) — shape (8,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_csv Ran
ran; our contract draft was wrong, not the code
pennylaneai/lightning-on-hpc/DataCollection/single_node/VQE/lightning_kokkos_openmp/genplot.py
code served (permissive licence) · get_code("efd5c96b7d42c07d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary CSV file with sample data
temp_dir = tempfile.mkdtemp()
temp_csv = os.path.join(temp_dir, "test_data.csv")

with open(temp_csv, 'w') as f:
    f.write("H2,ZZ,2,3,1.5\n")
    f.write("LiH,XX,4,5,2.3\n")
    f.write("H2O,YY,6,7,3.1\n")

ARGS = {
    'filename': temp_csv
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
svd_split Not yet run
unverified (harvested, no recorded run)
PennyLaneAI/pennylane-lightning/pennylane_lightning/lightning_tensor/_tensornet.py
code served (permissive licence) · get_code("ae57509f5249e263")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We introduce PennyLane's Lightning suite, a collection of high-performance state-vector simulators targeting CPU, GPU, and HPC-native architectures and workloads. Quantum applications such as QAOA, VQE, and synthetic workloads are implemented to demonstrate the supported classical computing architectures and showcase the scale of problems that can be simulated using our tooling. We benchmark the performance of Lightning with backends supporting CPUs, as well as NVidia and AMD GPUs, and compare the results to other commonly used high-performance simulator packages, demonstrating where Lightning's implementations give performance leads. We show improved CPU performance by employing explicit SIMD intrinsics and multi-threading, batched task-based execution across multiple GPUs, and distributed forward and gradient-based quantum circuit executions across multiple nodes. Our data shows we can comfortably simulate a variety of circuits, giving examples with up to 30 qubits on a single device or node, and up to 41 qubits using multiple nodes.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2403.02512")
get_code_for_paper("2403.02512")
have("2403.02512")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2403.02512.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2403.02512.svg)](https://syntology.ai/paper/2403.02512)

Connect an agent — have() is free.