qiskit icon indicating copy to clipboard operation
qiskit copied to clipboard

Add shape to the *Pub constructors

Open ihincks opened this issue 6 months ago • 3 comments

Summary

This PR adds a shape argument to the *Pub constructors.

Details and comments

This is done in a backward-compatible way. However, implementations of primitives that happen to look directly at SamplerPub.parameter_values.shape instead of Samplerub.shape will return the wrong shape. I propose that we go find-and-replace all such occurrences in IBM implementations prior to release of 2.1.

Motivation

TODO: write this down. It has to do with new-style mitigation.

ihincks avatar May 22 '25 21:05 ihincks

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core
  • @ajavadia
  • @levbishop
  • @t-imamichi

qiskit-bot avatar May 22 '25 21:05 qiskit-bot

Pull Request Test Coverage Report for Build 15256368166

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 12 of 12 (100.0%) changed or added relevant lines in 1 file are covered.
  • 7 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.002%) to 88.336%

Files with Coverage Reduction New Missed Lines %
crates/circuit/src/symbol_expr.rs 1 75.21%
crates/cext/src/circuit.rs 2 81.16%
crates/qasm2/src/lex.rs 4 92.23%
<!-- Total: 7
Totals Coverage Status
Change from base Build 15188294429: 0.002%
Covered Lines: 78485
Relevant Lines: 88848

💛 - Coveralls

coveralls avatar May 22 '25 21:05 coveralls

Missing the estimator PUB changes

SamFerracin avatar May 26 '25 14:05 SamFerracin

This was originally intended for 2.1, but staled and wasn't touched at all within the 2.2 window. Shall we close it?

jakelishman avatar Oct 08 '25 00:10 jakelishman

Yes, thanks, we are going a different direction (samplomatic).

ihincks avatar Oct 08 '25 00:10 ihincks