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

Qiskit / qiskit / 6472153023 / 1
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-15778-32b3eceec4f5e47bb4bbb8a04384e1729fac7a2b
DEFAULT BRANCH: main
Ran 10 Oct 2023 05:03PM UTC
Files 1265
Run time 28s
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

10 Oct 2023 04:29PM UTC coverage: 87.006% (-0.02%) from 87.024%
6472153023.1

push

github

web-flow
Fix hash of `Parameter` and `ParameterExpression` (#10875)

* Fix hash of `Parameter` and `ParameterExpression`

This fixes the construction paths for `Parameter` and its hash such that
it will now correctly hash equal to any `ParameterExpression`s that it
compares equal to.  This is a requirement of the Python data model for
hashmaps and hashsets, which previously we were breaking.  In order to
achieve this, we slightly modify the hash key such that the `Parameter`
instances are no longer a part of the hash of `ParameterExpression`,
which means we can use the same hashing strategy for both.

This rearrangement has the benefit of removing the requirement for the
`__new__` overrides on `Parameter` and `ParameterVectorElement`.

* Add type hint

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

* Tweak documentation wording

---------

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

74142 of 85215 relevant lines covered (87.01%)

90905.75 hits per line

Source Files on job 6472153023.1
  • Tree
  • List 0
  • Changed 28
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6472153023
  • 8651d34a on github
  • Prev Job for on gh-readonly-queue/main/pr-10875-4f5d90d4a42ecc84489cc5b72a18d91b033173b0 (#6471749063.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc