Skip to content

Add lazy::Bool parameter to QuantumOpticsRepr struct - #79

Closed
Roll249 wants to merge 1 commit into
qojulia:mainfrom
Roll249:add-quantumopticsrepr-lazy
Closed

Add lazy::Bool parameter to QuantumOpticsRepr struct#79
Roll249 wants to merge 1 commit into
qojulia:mainfrom
Roll249:add-quantumopticsrepr-lazy

Conversation

@Roll249

@Roll249 Roll249 commented Jun 4, 2026

Copy link
Copy Markdown

Summary

Add lazy::Bool parameter to QuantumOpticsRepr struct, defaulting to false for backward compatibility.

Motivation

Allow QuantumOpticsRepr(; lazy=true) to enable lazy symbolic operator dispatch, avoiding eager evaluation of Sum, Mul, and Tensor expressions.

Changes

  • Add lazy::Bool = false field to QuantumOpticsRepr struct
  • Minor internal adjustment to field ordering

Testing

  • Existing tests continue to pass
  • Lazy mode tested in companion PR to QuantumSymbolics.jl

I used Claude (Cursor AI agent) to help brainstorm the logic
for the lazy operator dispatch structure, which I then manually
implemented and verified against the issue requirements.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI review requested due to automatic review settings June 4, 2026 05:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Krastanov

Copy link
Copy Markdown
Member

we do not accept LLM PRs for our bounties

@Krastanov Krastanov closed this Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants