Skip to content

Commit

Permalink
Fixed Qrack demo. State cannot work with finite shots (#1195)
Browse files Browse the repository at this point in the history
**Title:**
Modified qrack simulator demo.

**Summary:**
State measurements can not work with finite shots. However, there is
such a case in qrack simulator demo which can cause failure with the
latest catalyst which verifies this.

**Relevant references:**

**Possible Drawbacks:**

**Related GitHub Issues:**
[sc-70792]
  • Loading branch information
mehrdad2m authored Aug 20, 2024
1 parent c42833a commit 18afc8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demonstrations/qrack.metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
],
"dateOfPublication": "2024-07-10T00:00:00+00:00",
"dateOfLastModification": "2024-08-05T00:00:00+00:00",
"dateOfLastModification": "2024-08-20T00:00:00+00:00",
"categories": [
"Devices and Performance"
],
Expand Down
2 changes: 1 addition & 1 deletion demonstrations/qrack.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def circuit():
def validate(n):
results = []
for device in ["qrack.simulator", "lightning.qubit"]:
dev = qml.device(device, n, shots=1)
dev = qml.device(device, n, shots=None)

@qjit
@qml.qnode(dev)
Expand Down

0 comments on commit 18afc8b

Please sign in to comment.