-
Notifications
You must be signed in to change notification settings - Fork 645
Open
Labels
area/healthInvolves general matters of project configuration, health, maintenance, and similar concernsInvolves general matters of project configuration, health, maintenance, and similar concernsarea/pythonInvolves Python codeInvolves Python code
Description
There appear to be syntax errors in several files where format strings are missing "{}", which results in the output not matching intended strings.
For example, this issue can be founded at line 67 in tensorflow_quantum/datasets/cluster_state.py.
In addition, I identified similar errors in approximately in other 10 files.
# Format error
raise TypeError('qubits must be a list or np.ndarray. Given: '.format(
type(qubits)))
# Correct
raise TypeError('qubits must be a list or np.ndarray. Given: {}'.format(
type(qubits)))Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/healthInvolves general matters of project configuration, health, maintenance, and similar concernsInvolves general matters of project configuration, health, maintenance, and similar concernsarea/pythonInvolves Python codeInvolves Python code