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.28k stars 2.37k forks source link

Clean two_qubit_decompose code #13093

Closed ShellyGarion closed 2 months ago

ShellyGarion commented 2 months ago

Summary

In this PR we remove some unused code from the file qiskit/synthesis/two_qubit/two_qubit_decompose.py. And moreover, the following Python functions now calls the relevant Rust functions:

Details and comments

qiskit-bot commented 2 months ago

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

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 10806927953

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit/synthesis/two_qubit/two_qubit_decompose.py 2 3 66.67%
<!-- Total: 57 58 98.28% -->
Files with Coverage Reduction New Missed Lines %
qiskit/quantum_info/operators/mixins/multiply.py 1 93.75%
qiskit/synthesis/one_qubit/one_qubit_decompose.py 1 70.67%
qiskit/quantum_info/operators/mixins/group.py 1 92.59%
qiskit/transpiler/passes/synthesis/unitary_synthesis.py 1 88.26%
crates/qasm2/src/expr.rs 1 94.02%
qiskit/quantum_info/operators/channel/quantum_channel.py 1 72.14%
qiskit/quantum_info/operators/mixins/adjoint.py 1 90.0%
qiskit/quantum_info/operators/mixins/linear.py 1 88.0%
crates/accelerate/src/synthesis/clifford/utils.rs 1 78.06%
qiskit/visualization/circuit/_utils.py 2 94.25%
<!-- Total: 795 -->
Totals Coverage Status
Change from base Build 10721003464: -0.3%
Covered Lines: 73114
Relevant Lines: 82281

💛 - Coveralls