Skip to content

Fix QubitCircuit dtype conversion with barrier operations#166

Open
sansiro77 wants to merge 2 commits into
TuringQ:mainfrom
sansiro77:codex/fix-barrier-empty-apply
Open

Fix QubitCircuit dtype conversion with barrier operations#166
sansiro77 wants to merge 2 commits into
TuringQ:mainfrom
sansiro77:codex/fix-barrier-empty-apply

Conversation

@sansiro77

Copy link
Copy Markdown
Contributor

Summary

  • Treat empty tensor dictionaries in apply_complex_fix() as a no-op.
  • Add regression coverage for QubitCircuit containing barrier() during .to(torch.double) conversion.

@sansiro77 sansiro77 requested a review from Hugh-888 June 16, 2026 10:06
@sansiro77 sansiro77 self-assigned this Jun 16, 2026
@sansiro77 sansiro77 added the bugfix Fix bugs label Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fix bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant