Skip to content

Commit 7dbf83f

Browse files
authored
quick fix for noise shots (#69)
1 parent f74403c commit 7dbf83f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

horqrux/shots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def finite_shots(
178178
"""
179179
output_gates = apply_gates(state, gates, values)
180180
n_qubits = num_qubits(output_gates)
181-
if isinstance(state, DensityMatrix):
181+
if isinstance(output_gates, DensityMatrix):
182182
d = 2**n_qubits
183183
output_gates.array = output_gates.array.reshape((d, d))
184184
return eigen_sample(output_gates, observables, values, n_qubits, n_shots, key)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ authors = [
1313
requires-python = ">=3.8"
1414
license = {text = "Apache 2.0"}
1515

16-
version = "0.9.1"
16+
version = "0.9.2"
1717

1818
classifiers=[
1919
"License :: Other/Proprietary License",

0 commit comments

Comments
 (0)