Skip to content

Conversation

@jlapeyre
Copy link
Collaborator

@jlapeyre jlapeyre commented Nov 3, 2025

This PR changes functions so that they return iterators, rather than Vec.

It is in draft mode because I need to convert a few more functions.

I converted these from Vec to iterators:

solve_scaled_odg
solve_scaled_odgp_with_parity

I changed the name of the latter to this:
solve_scaled_odgp_with_parity_k_ne_0
Because the zero branch returned the wrong type. But it is never called with k=0 anyway.

I replaced some Vecs with iterators in solve_tdgp.

I changed several clones to borrow, an added on method to support one of these.

I changed the name to this:
solve_scaled_odgp_with_parity_k_ne_0

Because the zero branch returned the wrong type. But
it is never called with k=0.
@jlapeyre jlapeyre marked this pull request as ready for review November 6, 2025 23:08
@jlapeyre jlapeyre merged commit 762cefc into qiskit-community:main Nov 6, 2025
3 checks passed
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