Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFerracin committed Sep 26, 2024
1 parent 61e689c commit 6a86374
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions qiskit_ibm_runtime/debugger/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,21 +151,20 @@ def to_clifford(self, pubs: Sequence[EstimatorPubLike]) -> list[EstimatorPub]:
Returns:
The Clifford PUBs.
"""
coerced_pubs = [EstimatorPub.coerce(pub) for pub in pubs]
_validate_pubs(self.backend, coerced_pubs, False)

ret = []
for pub in coerced_pubs:
new_pub = EstimatorPub(
PassManager([ConvertISAToClifford()]).run(pub.circuit),
pub.observables,
pub.parameter_values,
pub.precision,
False,
coerced_pubs = []
for pub in pubs:
_validate_pubs(self.backend, [coerced_pub := EstimatorPub.coerce(pub)], False)
coerced_pubs.append(
EstimatorPub(
PassManager([ConvertISAToClifford()]).run(coerced_pub.circuit),
coerced_pub.observables,
coerced_pub.parameter_values,
coerced_pub.precision,
False,
)
)
ret.append(new_pub)

return ret
return coerced_pubs

def __repr__(self) -> str:
return f'Debugger(backend="{self.backend.name}")'

0 comments on commit 6a86374

Please sign in to comment.