[Bug] QDP cannot read default LZ4-compressed Feather files

Open
#1,472 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

@Debasishhh is already working on this.

Since Oct 17, 2026.

  • #1534 by @Debasishhh — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
python, rust
Domain
backend, data

Research direction

Start with the QdpEngine.encode and QuantumDataLoader Rust backend paths shown in the reproduction, then inspect how the Arrow dependency is built and whether IPC compression features are enabled. Reproduce the failure with a default PyArrow Feather V2 file; done means both direct encoding and the Rust-backed loader accept that input without the LZ4 feature error.

Written by the indexing model from the issue text.

Description

bug docs enhancement good-first-issue
What

QDP documents .feather as a supported CUDA file format. PyArrow writes Feather V2 files with LZ4 compression by default, but the QDP Arrow dependency is built without IPC compression support. Files produced by the standard PyArrow API therefore fail in both direct encoding and the Rust-backed loader.

Steps to reproduce:

from pathlib import Path

import numpy as np
import pyarrow as pa
import pyarrow.feather as feather
from qumat_qdp import QdpEngine, QuantumDataLoader

path = Path("vectors.feather")
values = np.eye(4, dtype=np.float64)
vectors = pa.FixedSizeListArray.from_arrays(
    pa.array(values.reshape(-1)),
    list_size=4,
)
feather.write_feather(pa.table({"data": vectors}), path)

QdpEngine().encode(path, num_qubits=2, encoding_method="amplitude")

list(
    QuantumDataLoader()
    .backend("rust")
    .qubits(2)
    .batches(1, size=2)
    .source_file(str(path))
)

Both paths fail with an error containing:

Invalid argument error: lz4 IPC decompression requires the lz4 feature

Actual result: Both documented CUDA file APIs reject a Feather V2 file written with PyArrow's default compression.

Expected result: QDP reads Feather files written with PyArrow's default settings through direct encoding and the Rust-backed loader.

This issue is limited to compressed Arrow IPC/Feather input. PyTorch .pt and .pth input is tracked separately because it fails through a different reader path.

Environment
  • OS: Linux
  • Python version: 3.12.12
  • Qumat version: 0.7.0.dev0 (qumat-qdp 0.3.0.dev0)
  • PyArrow version: 25.0.1
  • GPU: NVIDIA GeForce RTX 4090
Dominant language
Rust
Stars
2.3k
Forks
1k
Avg merge
2d 20h
Merged PRs (30d)
7

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/mahout

All issues in apache/mahout

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.