ApplyGateToLthQubit has a lambda function class attribute

Open
#1,606 1 comment 0 reactions 0 assignees View on GitHub

@SripriyaDevarapalli is already working on this.

Since Oct 9, 2026.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start by reading the ApplyGateToLthQubit class and how bloq class attributes are serialized. Trace where its callable attribute is used and check related tests for serialization behavior. Done means the class no longer relies on a Python function as an attribute while preserving its behavior and serialization.

Written by the indexing model from the issue text.

Description

no QC knowledge needed

The premise of making a bloq class is that the class attributes are theoretically serializable and all the behavior is in the class's methods. ApplyGateToLthQubit accepts a Python function (callable) as one of its attributes, which shouldn't be allowed.

Dominant language
Python
Stars
397
Forks
127
Avg merge
2d 22h
Merged PRs (30d)
1

Getting set up

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 quantumlib/Qualtran

All issues in quantumlib/Qualtran

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.