Skip to content

test(#55): add unitary equivalence tests for scheduling, fusion, and cutting - #96

Merged
Manideep3969 merged 1 commit into
mainfrom
fix/issue-55-unitary-equivalence-tests
Aug 18, 2026
Merged

test(#55): add unitary equivalence tests for scheduling, fusion, and cutting#96
Manideep3969 merged 1 commit into
mainfrom
fix/issue-55-unitary-equivalence-tests

Conversation

@Manideep3969

Copy link
Copy Markdown
Owner

Test Addition

Add comprehensive correctness tests that verify optimized circuits produce the same unitary as the input circuit.

Scheduling tests:

  • Unitary preservation for ASAP, ALAP, coherence_aware on Bell and GHZ circuits
  • Verify ASAP and ALAP produce distinct scheduling methods

Fusion tests:

  • Unitary preservation on Bell, GHZ, RZ chains, multi-qubit circuits
  • Global phase equivalence via Operator.equiv()

Cutting tests:

  • _partition_qubits returns all qubits
  • Groups are disjoint
  • Cuts separate qubit groups correctly

All 334 tests pass.

…cutting

Add comprehensive correctness tests:
- Scheduling: unitary preservation for ASAP, ALAP, coherence_aware
  on Bell and GHZ circuits; verify ASAP/ALAP produce distinct methods
- Fusion: unitary preservation on Bell, GHZ, RZ chains; global phase
  equivalence via Operator.equiv()
- Cutting: _partition_qubits returns all qubits, groups are disjoint,
  and cuts separate qubit groups

All 334 tests pass.
@Manideep3969
Manideep3969 merged commit a75b099 into main Aug 18, 2026
4 checks passed
@Manideep3969
Manideep3969 deleted the fix/issue-55-unitary-equivalence-tests branch August 18, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant