Skip to content

Commit 1a6de8f

Browse files
Update src/qibo/result.py
Co-authored-by: Renato M S Farias <renato.msf@gmail.com>
1 parent a8e8132 commit 1a6de8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/qibo/result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ def from_samples(
599599
f"got shape {samples.shape}.",
600600
)
601601

602-
if not np.all((samples == 0) | (samples == 1)):
602+
if not backend.all((samples == 0) | (samples == 1)):
603603
raise_error(
604604
ValueError, "samples array must contain only binary values (0 or 1)."
605605
)

0 commit comments

Comments
 (0)