Skip to content

Fix more spurious complex parts in circuit functions (backport #14431) #14438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented May 22, 2025

Summary

@ElePT reported that #13643 came back for other circuits, too. This essentially affects circuits that use operators as inputs, which have coefficients of complex types. This problem does not appear on main, I assume #13278 removes the 0 complex component. We could still consider to add this safetyguard to main, but there's no way to break it right now that I'm aware of.


This is an automatic backport of pull request #14431 done by [Mergify](https://mergify.com).

* Fix spurious complex part in circuit funcs

* reno links

(cherry picked from commit e7fa11d)
@mergify mergify bot requested a review from a team as a code owner May 22, 2025 17:12
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the following people are relevant to this code:

  • @Cryoris
  • @Qiskit/terra-core
  • @ajavadia

@github-actions github-actions bot added Changelog: Bugfix Include in the "Fixed" section of the changelog mod: circuit Related to the core of the `QuantumCircuit` class or the circuit library labels May 22, 2025
@github-actions github-actions bot added this to the 1.4.4 milestone May 22, 2025
@ElePT ElePT enabled auto-merge May 22, 2025 17:52
@ElePT ElePT added this pull request to the merge queue May 22, 2025
Merged via the queue into stable/1.4 with commit 503949d May 22, 2025
19 of 20 checks passed
@Cryoris Cryoris deleted the mergify/bp/stable/1.4/pr-14431 branch May 23, 2025 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog mod: circuit Related to the core of the `QuantumCircuit` class or the circuit library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants