pylint -rn qiskit/transpiler/passes/synthesis test/python/transpiler/test_solovay_kitaev.py
************* Module qiskit.transpiler.passes.synthesis
qiskit/transpiler/passes/synthesis/__init__.py:19:0: C0304: Final newline missing (missing-final-newline)
************* Module qiskit.transpiler.passes.synthesis.solovay_kitaev_utils
qiskit/transpiler/passes/synthesis/solovay_kitaev_utils.py:390:0: C0103: Argument name "u" doesn't conform to '[a-z_][a-z0-9_]{2,30}|ax|dt$' pattern (invalid-name)
qiskit/transpiler/passes/synthesis/solovay_kitaev_utils.py:402:0: C0103: Argument name "u" doesn't conform to '[a-z_][a-z0-9_]{2,30}|ax|dt$' pattern (invalid-name)
************* Module qiskit.transpiler.passes.synthesis.solovay_kitaev
qiskit/transpiler/passes/synthesis/solovay_kitaev.py:58:0: C0330: Wrong continued indentation (add 1 space).
for comb in itertools.product(*[basis_gates] * reps))
^| (bad-continuation)
************* Module test.python.transpiler.test_solovay_kitaev
test/python/transpiler/test_solovay_kitaev.py:35:59: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:150:30: C0326: Exactly one space required after :
def _generate_x_rotation(angle:float) -> np.ndarray:
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:0: C0301: Line too long (103/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:151:23: C0326: Exactly one space required after comma
return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:25: C0326: Exactly one space required after comma
return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:28: C0326: Exactly one space required after comma
return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:31: C0326: Exactly one space required after comma
return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:47: C0326: Exactly one space required after comma
return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:65: C0326: Exactly one space required after comma
return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:68: C0326: Exactly one space required after comma
return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:84: C0326: Exactly one space required after comma
return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:153:30: C0326: Exactly one space required after :
def _generate_y_rotation(angle:float) -> np.ndarray:
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:0: C0301: Line too long (103/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:154:37: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:39: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:56: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:59: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:61: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:64: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:82: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:84: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:156:30: C0326: Exactly one space required after :
def _generate_z_rotation(angle:float) -> np.ndarray:
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:0: C0301: Line too long (103/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:157:37: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:54: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:57: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:74: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:90: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:93: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:96: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:98: C0326: Exactly one space required after comma
return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:174:28: C0326: Exactly one space required after comma
return np.array([1.0,0.0,0.0])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:174:32: C0326: Exactly one space required after comma
return np.array([1.0,0.0,0.0])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:176:28: C0326: Exactly one space required after comma
return np.array([0.0,1.0,0.0])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:176:32: C0326: Exactly one space required after comma
return np.array([0.0,1.0,0.0])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:178:28: C0326: Exactly one space required after comma
return np.array([0.0,0.0,1.0])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:178:32: C0326: Exactly one space required after comma
return np.array([0.0,0.0,1.0])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:180:39: C0326: Exactly one space required after comma
return np.array([1/math.sqrt(3),1/math.sqrt(3),1/math.sqrt(3)])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:180:54: C0326: Exactly one space required after comma
return np.array([1/math.sqrt(3),1/math.sqrt(3),1/math.sqrt(3)])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:182:25: C0326: Exactly one space required after :
def _generate_x_su2(angle:float) -> np.ndarray:
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:184:0: C0330: Wrong continued indentation (remove 2 spaces).
[math.sin(angle/2)*1j, math.cos(angle/2)]], dtype=complex)
| ^ (bad-continuation)
test/python/transpiler/test_solovay_kitaev.py:186:25: C0326: Exactly one space required after :
def _generate_y_su2(angle:float) -> np.ndarray:
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:188:0: C0330: Wrong continued indentation (remove 4 spaces).
[-math.sin(angle/2), math.cos(angle/2)]], dtype=complex)
| ^ (bad-continuation)
test/python/transpiler/test_solovay_kitaev.py:190:25: C0326: Exactly one space required after :
def _generate_z_su2(angle:float) -> np.ndarray:
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:194:27: C0326: Exactly one space required after comma
base = np.array([[alpha,beta],[-np.conj(beta),np.conj(alpha)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:194:33: C0326: Exactly one space required after comma
base = np.array([[alpha,beta],[-np.conj(beta),np.conj(alpha)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:194:49: C0326: Exactly one space required after comma
base = np.array([[alpha,beta],[-np.conj(beta),np.conj(alpha)]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:196:15: C0326: Exactly one space required around comparison
if abs(det)<1e10:
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:197:27: C0326: Exactly one space required after comma
return np.array([[1,0],[0,1]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:197:30: C0326: Exactly one space required after comma
return np.array([[1,0],[0,1]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:197:33: C0326: Exactly one space required after comma
return np.array([[1,0],[0,1]])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:202:24: C0326: Exactly one space required after comma
vector = np.array([a,b,c])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:202:26: C0326: Exactly one space required after comma
vector = np.array([a,b,c])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:203:32: C0326: Exactly one space required before comparison
if a != 0.0 or b != 0.0 or c!= 0.0:
^^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:207:26: C0326: Exactly one space required after comma
return np.array([1,0,0])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:207:28: C0326: Exactly one space required after comma
return np.array([1,0,0])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:210:106: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:210:0: C0301: Line too long (106/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:210:28: C0326: Exactly one space required after comma
return array.shape == (3,3) and abs(np.linalg.det(array)-1.0)< 1e-10 and not False in np.isreal(array)
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:210:65: C0326: Exactly one space required before comparison
return array.shape == (3,3) and abs(np.linalg.det(array)-1.0)< 1e-10 and not False in np.isreal(array)
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:213:39: C0326: Exactly one space required after comma
for t in itertools.product(range(2),range(2)):
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:214:43: C0326: Exactly one space required before comparison
if abs(a[t[0]][t[1]]-b[t[0]][t[1]])> 1e-10:
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:226:41: C0326: Exactly one space required after comma
[np.dot(_generate_z_rotation(0.5),_generate_y_rotation(0.4))],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:227:41: C0326: Exactly one space required after comma
[np.dot(_generate_y_rotation(0.5),_generate_x_rotation(0.4))]
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:230:98: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:235:0: C0301: Line too long (118/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:235:36: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:235:66: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:235:79: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:235:103: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:236:100: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:245:41: C0326: Exactly one space required after comma
[np.dot(_generate_z_rotation(0.5),_generate_y_rotation(0.4))],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:246:41: C0326: Exactly one space required after comma
[np.dot(_generate_y_rotation(0.5),_generate_x_rotation(0.4))]
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:249:103: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:249:0: C0301: Line too long (103/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:253:0: C0301: Line too long (125/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:253:44: C0326: Exactly one space required after comma
actual_commutator = np.dot(first_so3,np.dot(second_so3,np.dot(np.matrix.getH(first_so3),np.matrix.getH(second_so3))))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:253:62: C0326: Exactly one space required after comma
actual_commutator = np.dot(first_so3,np.dot(second_so3,np.dot(np.matrix.getH(first_so3),np.matrix.getH(second_so3))))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:253:95: C0326: Exactly one space required after comma
actual_commutator = np.dot(first_so3,np.dot(second_so3,np.dot(np.matrix.getH(first_so3),np.matrix.getH(second_so3))))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:254:53: C0326: No space allowed after bracket
self.assertTrue(are_almost_equal_so3_matrices( actual_commutator,u_so3))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:254:72: C0326: Exactly one space required after comma
self.assertTrue(are_almost_equal_so3_matrices( actual_commutator,u_so3))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:256:0: C0301: Line too long (118/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:256:36: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:256:66: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:256:79: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:256:103: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:257:105: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:257:0: C0301: Line too long (105/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:261:0: C0301: Line too long (125/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:261:44: C0326: Exactly one space required after comma
actual_commutator = np.dot(first_so3,np.dot(second_so3,np.dot(np.matrix.getH(first_so3),np.matrix.getH(second_so3))))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:261:62: C0326: Exactly one space required after comma
actual_commutator = np.dot(first_so3,np.dot(second_so3,np.dot(np.matrix.getH(first_so3),np.matrix.getH(second_so3))))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:261:95: C0326: Exactly one space required after comma
actual_commutator = np.dot(first_so3,np.dot(second_so3,np.dot(np.matrix.getH(first_so3),np.matrix.getH(second_so3))))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:262:53: C0326: No space allowed after bracket
self.assertTrue(are_almost_equal_so3_matrices( actual_commutator,u_so3))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:262:72: C0326: Exactly one space required after comma
self.assertTrue(are_almost_equal_so3_matrices( actual_commutator,u_so3))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:264:0: C0301: Line too long (118/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:264:36: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:264:66: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:264:79: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:264:103: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:268:43: C0326: Exactly one space required after comma
self.assertAlmostEqual(actual[0][0],1.0)
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:269:43: C0326: Exactly one space required after comma
self.assertAlmostEqual(actual[0][1],0.0)
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:270:43: C0326: Exactly one space required after comma
self.assertAlmostEqual(actual[0][2],0.0)
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:271:43: C0326: Exactly one space required after comma
self.assertAlmostEqual(actual[1][0],0.0)
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:272:43: C0326: Exactly one space required after comma
self.assertAlmostEqual(actual[2][0],0.0)
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:274:0: C0301: Line too long (118/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:274:36: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:274:66: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:274:79: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:274:103: C0326: Exactly one space required after comma
@given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:275:0: C0301: Line too long (101/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:278:43: C0326: Exactly one space required after comma
self.assertAlmostEqual(actual[1][1],1.0)
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:279:43: C0326: Exactly one space required after comma
self.assertAlmostEqual(actual[0][1],0.0)
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:280:43: C0326: Exactly one space required after comma
self.assertAlmostEqual(actual[1][0],0.0)
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:281:43: C0326: Exactly one space required after comma
self.assertAlmostEqual(actual[1][2],0.0)
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:282:43: C0326: Exactly one space required after comma
self.assertAlmostEqual(actual[2][1],0.0)
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:283:0: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:342:34: C0326: Exactly one space required after comma
@data([GateSequence([IGate()]),IGate(),GateSequence([IGate(),IGate()])])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:342:42: C0326: Exactly one space required after comma
@data([GateSequence([IGate()]),IGate(),GateSequence([IGate(),IGate()])])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:342:64: C0326: Exactly one space required after comma
@data([GateSequence([IGate()]),IGate(),GateSequence([IGate(),IGate()])])
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:344:24: C0326: Exactly one space required after comma
def test_append(self,first_value,second_value,third_value):
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:344:36: C0326: Exactly one space required after comma
def test_append(self,first_value,second_value,third_value):
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:344:49: C0326: Exactly one space required after comma
def test_append(self,first_value,second_value,third_value):
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:359:32: C0326: Exactly one space required after comma
[GateSequence([IGate()]),GateSequence([IGate(),IGate()]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:359:54: C0326: Exactly one space required after comma
[GateSequence([IGate()]),GateSequence([IGate(),IGate()]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:359:64: C0326: Exactly one space required after comma
[GateSequence([IGate()]),GateSequence([IGate(),IGate()]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:360:30: C0326: Exactly one space required after comma
[GateSequence([IGate(),IGate()]),GateSequence([IGate(),IGate(),IGate()]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:360:40: C0326: Exactly one space required after comma
[GateSequence([IGate(),IGate()]),GateSequence([IGate(),IGate(),IGate()]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:360:62: C0326: Exactly one space required after comma
[GateSequence([IGate(),IGate()]),GateSequence([IGate(),IGate(),IGate()]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:360:70: C0326: Exactly one space required after comma
[GateSequence([IGate(),IGate()]),GateSequence([IGate(),IGate(),IGate()]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:360:80: C0326: Exactly one space required after comma
[GateSequence([IGate(),IGate()]),GateSequence([IGate(),IGate(),IGate()]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:361:30: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(1)]),GateSequence([RXGate(1)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:361:42: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(1)]),GateSequence([RXGate(1)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:361:68: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(1)]),GateSequence([RXGate(1)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:362:34: C0326: Exactly one space required after comma
[GateSequence([RXGate(1)]),GateSequence([RXGate(0.99)]),0.01],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:362:63: C0326: Exactly one space required after comma
[GateSequence([RXGate(1)]),GateSequence([RXGate(0.99)]),0.01],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:363:0: C0330: Wrong hanging indentation.
)
| | ^ (bad-continuation)
test/python/transpiler/test_solovay_kitaev.py:365:0: C0301: Line too long (126/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:365:43: C0326: Exactly one space required after comma
def test_represents_same_gate_true(self,first_sequence: 'GateSequence',second_sequence: 'GateSequence', precision: float):
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:365:74: C0326: Exactly one space required after comma
def test_represents_same_gate_true(self,first_sequence: 'GateSequence',second_sequence: 'GateSequence', precision: float):
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:367:0: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:369:32: C0326: Exactly one space required after comma
[GateSequence([IGate()]),GateSequence([IGate(),RXGate(1)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:369:54: C0326: Exactly one space required after comma
[GateSequence([IGate()]),GateSequence([IGate(),RXGate(1)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:369:66: C0326: Exactly one space required after comma
[GateSequence([IGate()]),GateSequence([IGate(),RXGate(1)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:370:32: C0326: Exactly one space required after comma
[GateSequence([RXGate(1),RXGate(1),RXGate(0.5)]),GateSequence([RXGate(1)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:370:42: C0326: Exactly one space required after comma
[GateSequence([RXGate(1),RXGate(1),RXGate(0.5)]),GateSequence([RXGate(1)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:370:56: C0326: Exactly one space required after comma
[GateSequence([RXGate(1),RXGate(1),RXGate(0.5)]),GateSequence([RXGate(1)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:370:82: C0326: Exactly one space required after comma
[GateSequence([RXGate(1),RXGate(1),RXGate(0.5)]),GateSequence([RXGate(1)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:371:34: C0326: Exactly one space required after comma
[GateSequence([RXGate(1)]),GateSequence([RXGate(0.5)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:371:62: C0326: Exactly one space required after comma
[GateSequence([RXGate(1)]),GateSequence([RXGate(0.5)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:372:34: C0326: Exactly one space required after comma
[GateSequence([RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:372:60: C0326: Exactly one space required after comma
[GateSequence([RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:372:74: C0326: Exactly one space required after comma
[GateSequence([RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:373:0: C0301: Line too long (104/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:373:34: C0326: Exactly one space required after comma
[GateSequence([RXGate(0.3),RXGate(0.5),RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:373:46: C0326: Exactly one space required after comma
[GateSequence([RXGate(0.3),RXGate(0.5),RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:373:58: C0326: Exactly one space required after comma
[GateSequence([RXGate(0.3),RXGate(0.5),RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:373:84: C0326: Exactly one space required after comma
[GateSequence([RXGate(0.3),RXGate(0.5),RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:373:98: C0326: Exactly one space required after comma
[GateSequence([RXGate(0.3),RXGate(0.5),RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:374:0: C0301: Line too long (104/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:374:34: C0326: Exactly one space required after comma
[GateSequence([RXGate(0.3),RXGate(0.8),RXGate(1)]),GateSequence([RXGate(0.1),RXGate(0.2)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:374:46: C0326: Exactly one space required after comma
[GateSequence([RXGate(0.3),RXGate(0.8),RXGate(1)]),GateSequence([RXGate(0.1),RXGate(0.2)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:374:58: C0326: Exactly one space required after comma
[GateSequence([RXGate(0.3),RXGate(0.8),RXGate(1)]),GateSequence([RXGate(0.1),RXGate(0.2)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:374:84: C0326: Exactly one space required after comma
[GateSequence([RXGate(0.3),RXGate(0.8),RXGate(1)]),GateSequence([RXGate(0.1),RXGate(0.2)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:374:98: C0326: Exactly one space required after comma
[GateSequence([RXGate(0.3),RXGate(0.8),RXGate(1)]),GateSequence([RXGate(0.1),RXGate(0.2)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:375:0: C0330: Wrong hanging indentation.
)
| | ^ (bad-continuation)
test/python/transpiler/test_solovay_kitaev.py:377:0: C0301: Line too long (127/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:377:44: C0326: Exactly one space required after comma
def test_represents_same_gate_false(self,first_sequence: 'GateSequence',second_sequence: 'GateSequence', precision: float):
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:377:75: C0326: Exactly one space required after comma
def test_represents_same_gate_false(self,first_sequence: 'GateSequence',second_sequence: 'GateSequence', precision: float):
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:381:30: C0326: Exactly one space required after comma
[GateSequence([IGate(),IGate()]),GateSequence([]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:381:40: C0326: Exactly one space required after comma
[GateSequence([IGate(),IGate()]),GateSequence([]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:381:57: C0326: Exactly one space required after comma
[GateSequence([IGate(),IGate()]),GateSequence([]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:382:30: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(1),IGate()]),GateSequence([RXGate(1)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:382:40: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(1),IGate()]),GateSequence([RXGate(1)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:382:50: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(1),IGate()]),GateSequence([RXGate(1)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:382:76: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(1),IGate()]),GateSequence([RXGate(1)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:383:0: C0301: Line too long (106/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:383:30: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(1),IGate(),RXGate(0.4)]),GateSequence([RXGate(1),RXGate(0.4)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:383:40: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(1),IGate(),RXGate(0.4)]),GateSequence([RXGate(1),RXGate(0.4)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:383:48: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(1),IGate(),RXGate(0.4)]),GateSequence([RXGate(1),RXGate(0.4)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:383:62: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(1),IGate(),RXGate(0.4)]),GateSequence([RXGate(1),RXGate(0.4)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:383:86: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(1),IGate(),RXGate(0.4)]),GateSequence([RXGate(1),RXGate(0.4)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:383:100: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(1),IGate(),RXGate(0.4)]),GateSequence([RXGate(1),RXGate(0.4)]),0.0],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:384:30: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(2*math.pi),RXGate(2*math.pi)]),GateSequence([]),1e10],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:384:48: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(2*math.pi),RXGate(2*math.pi)]),GateSequence([]),1e10],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:384:68: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(2*math.pi),RXGate(2*math.pi)]),GateSequence([]),1e10],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:384:85: C0326: Exactly one space required after comma
[GateSequence([IGate(),RXGate(2*math.pi),RXGate(2*math.pi)]),GateSequence([]),1e10],
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:387:0: C0301: Line too long (114/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:387:26: C0326: Exactly one space required after comma
def test_simplify(self,original_sequence: 'GateSequence',expected_sequence: 'GateSequence', precision: float):
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:387:60: C0326: Exactly one space required after comma
def test_simplify(self,original_sequence: 'GateSequence',expected_sequence: 'GateSequence', precision: float):
^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:393:0: C0304: Final newline missing (missing-final-newline)
test/python/transpiler/test_solovay_kitaev.py:209:0: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:212:0: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:229:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:236:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:248:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:257:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:265:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:275:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:344:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:356:-1: W0105: String statement has no effect (pointless-string-statement)
test/python/transpiler/test_solovay_kitaev.py:364:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:376:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:386:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:24:0: W0611: Unused special_ortho_group imported from scipy.stats (unused-import)
------------------------------------------------------------------
Your code has been rated at 6.65/10 (previous run: 1.24/10, +5.41)