@@ -27,7 +27,7 @@ class InnerProductAdjGradTest(tf.test.TestCase, parameterized.TestCase):
2727 """Tests tfq_inner_product_grad."""
2828
2929 def test_inner_product_grad_inputs (self ):
30- """Makes sure that inner_product_adj_grad fails on bad inputs."""
30+ """Makes sure that inner_product_grad fails on bad inputs."""
3131 n_qubits = 5
3232 batch_size = 5
3333 n_other_programs = 3
@@ -232,7 +232,7 @@ def test_inner_product_grad_inputs(self):
232232 ])
233233 def test_correctness_with_symbols (self , n_qubits , batch_size ,
234234 inner_dim_size ):
235- """Tests that inner_product works with symbols."""
235+ """Tests that inner_product_grad works with symbols."""
236236 symbol_names = ['alpha' , 'beta' , 'gamma' ]
237237 n_params = len (symbol_names )
238238 qubits = cirq .GridQubit .rect (1 , n_qubits )
@@ -242,7 +242,7 @@ def test_correctness_with_symbols(self, n_qubits, batch_size,
242242
243243 other_batch = [
244244 util .random_circuit_resolver_batch (qubits , inner_dim_size )[0 ]
245- for i in range (batch_size )
245+ for _ in range (batch_size )
246246 ]
247247
248248 symbol_values_array = np .array (
@@ -312,15 +312,15 @@ def test_correctness_with_symbols(self, n_qubits, batch_size,
312312 ])
313313 def test_correctness_without_symbols (self , n_qubits , batch_size ,
314314 inner_dim_size ):
315- """Tests that inner_product_adj_grad works without symbols."""
315+ """Tests that inner_product_grad works without symbols."""
316316 qubits = cirq .GridQubit .rect (1 , n_qubits )
317317 circuit_batch , _ = \
318318 util .random_circuit_resolver_batch (
319319 qubits , batch_size )
320320
321321 other_batch = [
322322 util .random_circuit_resolver_batch (qubits , inner_dim_size )[0 ]
323- for i in range (batch_size )
323+ for _ in range (batch_size )
324324 ]
325325
326326 programs = util .convert_to_tensor (circuit_batch )
0 commit comments