Skip to content
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

Add clifford gates to collect_cliffords (backport #12750) #12763

Merged
merged 3 commits into from
Jul 11, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jul 11, 2024

Summary

This PR adds some Clifford gates to the CollectClifford() transpiler pass.

Details and comments

This is an immediate bugfix which does not handle the following problems:


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

* add clifford gates to collect_cliffords

* replace hard coded clifford names by clifford_circuit names

* move import

* replace hard coded clifford names in random_clifford_circuit

* add release notes

* add permutation to collect_clifford gate list

(cherry picked from commit 41267ec)

# Conflicts:
#	qiskit/circuit/random/utils.py
@mergify mergify bot requested a review from a team as a code owner July 11, 2024 15:46
@mergify mergify bot added the conflicts used by mergify when there are conflicts in a port label Jul 11, 2024
Copy link
Contributor Author

mergify bot commented Jul 11, 2024

Cherry-pick of 41267ec has failed:

On branch mergify/bp/stable/1.1/pr-12750
Your branch is up to date with 'origin/stable/1.1'.

You are currently cherry-picking commit 41267ecf5.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   qiskit/transpiler/passes/optimization/collect_cliffords.py
	new file:   releasenotes/notes/fix-collect-clifford-83af26d98b8c69e8.yaml

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   qiskit/circuit/random/utils.py

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@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:

  • @Qiskit/terra-core

@github-actions github-actions bot added Changelog: Bugfix Include in the "Fixed" section of the changelog mod: quantum info Related to the Quantum Info module (States & Operators) mod: transpiler Issues and PRs related to Transpiler labels Jul 11, 2024
@github-actions github-actions bot added this to the 1.1.2 milestone Jul 11, 2024
@ElePT ElePT enabled auto-merge July 11, 2024 15:53
@ElePT ElePT removed the conflicts used by mergify when there are conflicts in a port label Jul 11, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 9894614827

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • 37 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.05%) to 89.916%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 7 91.86%
crates/qasm2/src/parse.rs 30 95.77%
Totals Coverage Status
Change from base Build 9860435060: -0.05%
Covered Lines: 61828
Relevant Lines: 68762

💛 - Coveralls

@ElePT ElePT added this pull request to the merge queue Jul 11, 2024
Merged via the queue into stable/1.1 with commit 0e429af Jul 11, 2024
17 checks passed
@mergify mergify bot deleted the mergify/bp/stable/1.1/pr-12750 branch July 11, 2024 18:34
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: quantum info Related to the Quantum Info module (States & Operators) mod: transpiler Issues and PRs related to Transpiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants