Skip to content

Commit

Permalink
Update cirq-google/cirq_google/ops/internal_gate.py
Browse files Browse the repository at this point in the history
Co-authored-by: Pavol Juhas <[email protected]>
  • Loading branch information
NoureldinYosri and pavoljuhas authored Nov 14, 2024
1 parent 641e488 commit 2a45b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cirq-google/cirq_google/ops/internal_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def encode_function(
raise ValueError('The free variable must be sorted in increasing order')

if len(y.shape) != 1:
raise ValueError('The independent variable must be one dimensional')
raise ValueError('The dependent variable must be one dimensional')

if x.shape[0] != y.shape[0]:
raise ValueError('Mismatch between number of points in x and y')
Expand Down

0 comments on commit 2a45b2d

Please sign in to comment.