Skip to content

Commit d769974

Browse files
committed
reformat
1 parent bb21764 commit d769974

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

test/model/test_model.py

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -634,12 +634,25 @@ def test_apply_gates_cx_sx_h(self):
634634
"tau": 0.1,
635635
"t_final": t_final,
636636
"N": N,
637-
"h_z": 0.,
637+
"h_z": 0.0,
638638
"1q_components": ["x", "y", "z"],
639639
"2q_components": ["xx", "yy", "zz", "xy", "xz", "yz"],
640640
"b_quiet": True,
641-
"init_product_state": ["+x", "+x", "+z", "+z", "+z", "+z", "-z", "-z", "+z",
642-
"+z", "+z", "+z", "+z"],
641+
"init_product_state": [
642+
"+x",
643+
"+x",
644+
"+z",
645+
"+z",
646+
"+z",
647+
"+z",
648+
"-z",
649+
"-z",
650+
"+z",
651+
"+z",
652+
"+z",
653+
"+z",
654+
"+z",
655+
],
643656
"apply_gates": [
644657
(0.1, "cz", 0, 1),
645658
(0.2, "h", 2),
@@ -695,7 +708,7 @@ def test_apply_gates_cx_sx_h(self):
695708
)
696709
self.assertAlmostEqual(
697710
solver1.result["global"][("s_2", ())][1][0],
698-
0.,
711+
0.0,
699712
)
700713

701714
(_, c_data1), _ = prepare_concurrence_data(solver1.result, (0, 1))

0 commit comments

Comments
 (0)