• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit / 10506699788
88%

Build:
DEFAULT BRANCH: main
Ran 22 Aug 2024 11:14AM UTC
Jobs 1
Files 866
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Aug 2024 10:06AM UTC coverage: 89.597% (-0.01%) from 89.609%
10506699788

push

github

web-flow
Adding MCX synthesis plugins (#12961)

* moving high-level-synthesis plugins to a separate file

* Adding the remaining MCX synthesis functions and exposting all of them as HLS synthesis plugins.

* adding entry points for MCX plugins

* adding documentation section for MCX plugins

* renaming file

* Adding pending deprecation warnings

* placeholder for MCX plugin tests

* adding flag pending=True to deprecate

* changing checks from isinstance to name-based: a CCCX gate is called mcx but is not an MCXGate

* futher exposing C3X and C4X synthesis

* updating MCX synthesis functions to avoid returning C3X and C4X gates

For better or for worse, C3X and C4X gates have name 'mcx', and
therefore are caught by mcx plugins. We need to avoid recursion
with HLS calling an MCX-synthesis plugin for a C3X-gate, which
in turns returns a C3X-gate.

* fix compose to append

* renaming synthesized circuits for c3x and for c4x back to 'mcx' to avoid qasm changes

* test qasm fixes

* randomly spotted typo

* fixing how QuantumCircuit.decompose works in the presence of gates_to_decompose

* updating MCX plugins to check isinstance

* fixing test

* pylint fixes

* properly fixing test

* additional tests

* adding new synthesis functions to synthesis docs

* release notes

* docstrings improvements followin review

* Adding refernce to Vale et al paper for the MCXPhase gate implementation

* fixes to deprecation warnings and adding deprecation for get_num_ancilla_qubits

* docstring fixes

* renaming mcphase to v24

* removing unncessary checks

* addressing the rest of review comments

* and of course updating qasm checking after we've slightly changed the decomposition

* yet another renaming

* Update qiskit/circuit/library/standard_gates/x.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Update qiskit/circuit/library/standard_gates/x.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Update releasenotes/notes/add-mcx-plugins-85e5b248692a36db.yaml

Co... (continued)

272 of 299 new or added lines in 7 files covered. (90.97%)

26 existing lines in 6 files now uncovered.

67790 of 75661 relevant lines covered (89.6%)

364145.33 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
27
87.38
qiskit/transpiler/passes/synthesis/hls_plugins.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.02
-0.24% crates/qasm2/src/expr.rs
2
88.39
-0.36% qiskit/transpiler/passes/synthesis/unitary_synthesis.py
4
92.73
0.5% crates/qasm2/src/lex.rs
6
96.62
4.35% qiskit/transpiler/passes/synthesis/high_level_synthesis.py
6
97.61
-0.46% crates/qasm2/src/parse.rs
7
90.84
-5.34% qiskit/synthesis/two_qubit/xx_decompose/decomposer.py
Jobs
ID Job ID Ran Files Coverage
1 10506699788.1 22 Aug 2024 11:14AM UTC 866
89.6
GitHub Action Run
Source Files on build 10506699788
  • Tree
  • List 866
  • Changed 57
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 072548ff on github
  • Prev Build on gh-readonly-queue/main/pr-12968-6f482400e56345fe260d2144bf86acfd563855bc (#10504064900)
  • Next Build on main (#10525107270)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc