Qiskit / qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
https://www.ibm.com/quantum/qiskit
Apache License 2.0
5.11k stars 2.34k forks source link

function added to tally operations in circuit with associated qubits fixes #12972 #13044

Closed tonmoy-b closed 1 month ago

tonmoy-b commented 1 month ago

Summary

Added function to tally operations in circuit with associated qubits fixes #12972

Details and comments

-Added function count_ops_with_qubits() in quantumcircuit.py, this returns the operations in the QuantumCircuit along with the qubits associated with those operations. -The abovementioned function uses the Rust function fn operations_with_qubits in circuit_data.rs -A test (test_count_ops_with_qubits()) has been added to file test/python/circuit/test_circuit_data.py -tox has been run -- no test failures reported -tox -eblack run to reformat files

CLAassistant commented 1 month ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

:white_check_mark: tonmoy-b
:x: Tonmoy Bhattacharya


Tonmoy Bhattacharya seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

qiskit-bot commented 1 month ago

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:

tonmoy-b commented 1 month ago

Due to a commit without email address, I have been unable to sign the CLA for this PR. Due to this I am closing this PR. I have created a new PR#13055 instead.

tonmoy-b commented 1 month ago

Due to a commit without email address, I have been unable to sign the CLA for this PR. Due to this I am closing this PR. I have created a new PR#13055 instead.