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

Qiskit / qiskit-fermions / 30005363214
98%

Build:
DEFAULT BRANCH: main
Ran 23 Jul 2026 12:12PM UTC
Jobs 1
Files 89
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

23 Jul 2026 12:01PM UTC coverage: 97.68% (+0.001%) from 97.679%
30005363214

push

github

web-flow
Adds the `PrepareSlaterDeterminant` gate (#200)

* feat(circuit): add PrepareSlaterDeterminant gate

This gate is the composition of an InitializeModes reference occupation
followed by an OrbitalRotation. Bundling the two lets a later synthesis
plugin exploit the known occupation to use the rectangular
givens_decomposition_slater for a reduced-gate-count decomposition,
rather than the full square decomposition an OrbitalRotation alone needs.

Under simulation the gate is validate-then-rotate (mirroring the post-#198
InitializeModes/UCJ convention): its definition walks an InitializeModes
validator then the OrbitalRotation. That construction guarantees the
correctness contract the upcoming merge optimization pass depends on --
fusing an InitializeModes and an OrbitalRotation into a single
PrepareSlaterDeterminant leaves the simulated state exactly unchanged.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>

* feat(transpiler): add reduced Slater determinant synthesis plugin

GivensDecompositionSlaterDeterminantSynthesis lowers a
PrepareSlaterDeterminant using the rectangular givens_decomposition_slater:
it realizes only the m occupied orbitals of the rotation (the occupied
columns of the rotation unitary), emitting at most m(n-m) XXPlusYYGates and
no phase gates -- versus the n(n-1)/2 brick-wall plus n phases the full
OrbitalRotation synthesis needs. The reduced decomposition drops the
occupied-space and global phases, so the determinant is prepared up to a
global phase (physically irrelevant for state preparation).

Registered as the PrepareSlaterDeterminant.GivensDecompositionSlater
entry-point and documented in the builtin synthesis plugin table. Tests
check the reduced gate count and verify the prepared state matches the
trusted InitializeModes + square-OrbitalRotation synthesis up to a global
phase (which also confirms the reference-seeding indexing).

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>

* feat(transpiler): lower Prepa... (continued)

49 of 50 new or added lines in 5 files covered. (98.0%)

9812 of 10045 relevant lines covered (97.68%)

328.26 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
96.3
python/qiskit_fermions/circuit/library/prepare_slater_determinant.py
Jobs
ID Job ID Ran Files Coverage
1 30005363214.1 23 Jul 2026 12:12PM UTC 89
97.68
GitHub Action Run
Source Files on build 30005363214
  • Tree
  • List 89
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30005363214
  • 86d7ac70 on github
  • Prev Build on main (#29992301003)
  • Next Build on main (#30010276607)
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