Commit 78233bd 1 parent b093f33 commit 78233bd Copy full SHA for 78233bd
File tree 1 file changed +1
-22
lines changed
1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -1274,27 +1274,6 @@ def test_ifelseop_one_branch() -> None:
1274
1274
assert tket_circ_if_else == expected_circ
1275
1275
1276
1276
1277
- def test_ifelseop_multi_bit_cond () -> None :
1278
- qreg = QuantumRegister (2 , "q" )
1279
- creg = ClassicalRegister (2 , "c" )
1280
- circuit = QuantumCircuit (creg , qreg )
1281
- (q0 , q1 ) = qreg
1282
- (c0 , c1 ) = creg
1283
-
1284
- circuit .h (q0 )
1285
- circuit .h (q1 )
1286
- circuit .measure (q0 , c0 )
1287
- circuit .measure (q1 , c1 )
1288
- with circuit .if_test ((creg , 2 )):
1289
- circuit .x (q0 )
1290
- circuit .x (q1 )
1291
- circuit .measure (q0 , c0 )
1292
- circuit .measure (q1 , c1 )
1293
- # This currently gives an error as register exp not supported.
1294
- with pytest .raises (NotImplementedError ):
1295
- qiskit_to_tk (circuit )
1296
-
1297
-
1298
1277
# https://github.com/CQCL/pytket-qiskit/issues/452
1299
1278
def test_ifelseop_reg_cond () -> None :
1300
1279
qreg = QuantumRegister (2 , "q" )
@@ -1313,7 +1292,7 @@ def test_ifelseop_reg_cond() -> None:
1313
1292
circuit .x (q1 )
1314
1293
circuit .measure (q0 , c0 )
1315
1294
circuit .measure (q1 , c1 )
1316
- tkc : Circuit = qiskit_to_tk (circuit )
1295
+ _ : Circuit = qiskit_to_tk (circuit )
1317
1296
1318
1297
1319
1298
def test_range_preds_with_conditionals () -> None :
You can’t perform that action at this time.
0 commit comments