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

Qiskit / qiskit / 6472153023
87%
main: 88%

Build:
Build:
LAST BUILD BRANCH: more_evolve_gates
DEFAULT BRANCH: main
Ran 10 Oct 2023 05:03PM UTC
Jobs 1
Files 1265
Run time 20s
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

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>

35 of 35 new or added lines in 5 files covered. (100.0%)

74142 of 85215 relevant lines covered (87.01%)

90905.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6472153023.1 10 Oct 2023 05:03PM UTC 0
87.01
GitHub Action Run
Source Files on build 6472153023
Detailed source file information is not available for this build.
  • Back to Repo
  • 8651d34a on github
  • Prev Build on gh-readonly-queue/main/pr-11002-023569b7c8492a9b5fd0eb33cce20646763bdb0c (#6471749063)
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