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.1k stars 2.34k forks source link

Port RemoveDiagonalGatesBeforeMeasure to rust #13065

Closed ShellyGarion closed 3 weeks ago

ShellyGarion commented 1 month ago

Summary

close #12255

Details and comments

qiskit-bot commented 1 month ago

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

ShellyGarion commented 4 weeks ago

the failing test should be fixed after https://github.com/Qiskit/qiskit/pull/13067 is merged

ShellyGarion commented 4 weeks ago

Performance comparison of the old python code and the new rust code for a random_circuit:

n_qubits depth time is sec of old Python code time in sec of new rust code
5 1024 0.06 0.00
14 1024 0.47 0.02
20 1024 0.92 0.04
coveralls commented 4 weeks ago

Pull Request Test Coverage Report for Build 10719300369

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 %
crates/accelerate/src/remove_diagonal_gates_before_measure.rs 65 66 98.48%
<!-- Total: 75 76 98.68% -->
Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 5 91.98%
qiskit/visualization/gate_map.py 115 6.69%
<!-- Total: 120 -->
Totals Coverage Status
Change from base Build 10708280718: 0.005%
Covered Lines: 72673
Relevant Lines: 81485

💛 - Coveralls