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

Qiskit / qiskit-fermions / 34125176929
98%

Build:
DEFAULT BRANCH: main
Ran 07 Sep 2026 01:06PM UTC
Jobs 1
Files 111
Run time 1min
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

07 Sep 2026 01:02PM UTC coverage: 98.172% (-0.02%) from 98.195%
34125176929

push

github

web-flow
refactor(circuit)!: build UCC from an ffsim UCCSD operator (#324)

Mirrors the UCJ change: the gate reimplemented the amplitude conventions and
the parameter-vector packing alongside the part that is actually this package's
concern, namely turning the amplitudes into a mapper-agnostic fermionic
circuit. The first half duplicated ffsim, so this narrows the gate to the
second half and takes the ffsim operator directly.

Verified rather than assumed: the removed `num_parameters`/`from_parameters`
agreed with ffsim's `n_params`/`from_parameters` (14 parameters at norb=4,
nocc=2, with identical t1/t2), and a restricted operator applied through this
gate reproduces ffsim's own state vector exactly on coupled-cluster amplitudes.

Unlike UCJ, this drops capability ffsim cannot currently replace, which is why
it is a separate commit: `from_t_amplitudes`, the `spinless` variant and the
opt-in `antisymmetric` parameterization all go. Users needing those can build
an Evolution over their own cluster operator, which also hands them control
over the Trotter ordering of its terms. Note that ffsim ships no Qiskit gate
for UCCSD at all, so this gate remains the only route from one of its UCCSD
operators to a circuit -- under Jordan-Wigner or any other encoding.

What remains is the part with no ffsim equivalent: the cluster generator and
its conjugate-paired grouping, which keeps every factor of the product formula
Hermitian and hence unitary. A term-by-term split would not even preserve the
norm, so the grouping tests are kept verbatim; the two that previously reached
this machinery only through the spinless variant are ported to the restricted
one, which exercises the same paths on a spinful register.

One pre-existing convention difference is now documented rather than changed:
the cluster operator only ever sees the part of a same-spin t2 that is
symmetric under the simultaneous exchange t2[i,j,a,b] = t2[j,i,b,a], while
ffsim reads the raw tensor. Coupled-cluster ... (continued)

32 of 36 new or added lines in 1 file covered. (88.89%)

12995 of 13237 relevant lines covered (98.17%)

498311.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
95.88
-2.88% python/qiskit_fermions/circuit/library/ucc.py
Jobs
ID Job ID Ran Files Coverage
1 34125176929.1 07 Sep 2026 01:06PM UTC 111
98.17
GitHub Action Run
Source Files on build 34125176929
  • Tree
  • List 111
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34125176929
  • 92d60810 on github
  • Prev Build on main (#34119094223)
  • Next Build on main (#34126153811)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc