Commit e4bfabf
committed
fix: guard symbolic comparison in apply_flasq_cost_model
Address feedback from code review regarding potential TypeError when
n_fluid_ancilla is symbolic. Added is_symbolic check to guard the
comparison.
Adversarial review: Checked that it preserves behavior for concrete
values and falls through to division for symbolic ones. No issues found.1 parent d74f277 commit e4bfabf
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
| 527 | + | |
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| |||
0 commit comments