Closed MarquessV closed 6 months ago
PR Preview Action v1.4.7
:---:
:rocket: Deployed preview to https://rigetti.github.io/quil-rs/pr-preview/pr-355/
on branch quil-py-docs
at 2024-04-16 22:45 UTC
Using index_map
would also help solve the problem of duplicate calibrations.
Opened rigetti/rigetti-pyo3#43 to add support for IndexMap.
@Shadow53 @kalzoo - Is there a good reason not to replace all instances of BTreeMap
/HashMap
in the public API with IndexMap
? Theoretically, if offers better insert performance, and it arguably provides better UX since users can expect instructions to be ordered the same way they inserted them (with respect to how Program
groups them, of course).
EDIT: Updated this PR w/ those changes.
@Shadow53 @kalzoo - Is there a good reason not to replace all instances of
BTreeMap
/HashMap
in the public API withIndexMap
? Theoretically, if offers better insert performance, and it arguably provides better UX since users can expect instructions to be ordered the same way they inserted them (with respect to howProgram
groups them, of course).EDIT: Updated this PR w/ those changes.
Our criteria should be:
So if indexmap checks those boxes, I'm good with it.
Closes #353