File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -656,6 +656,27 @@ mod tests {
656
656
opt_rz. hugr_mut ( ) . update_validate ( & REGISTRY ) . unwrap ( ) ;
657
657
}
658
658
659
+ #[ rstest]
660
+ #[ case:: compiled( badger_opt_compiled( ) ) ]
661
+ #[ case:: json( badger_opt_json( ) ) ]
662
+ fn rz_rz_cancellation_split_parallel (
663
+ rz_rz : Circuit ,
664
+ #[ case] badger_opt : DefaultBadgerOptimiser ,
665
+ ) {
666
+ let mut opt_rz = badger_opt. optimise (
667
+ & rz_rz,
668
+ BadgerOptions {
669
+ timeout : Some ( 0 ) ,
670
+ n_threads : 2 . try_into ( ) . unwrap ( ) ,
671
+ queue_size : 4 ,
672
+ split_circuit : true ,
673
+ ..Default :: default ( )
674
+ } ,
675
+ ) ;
676
+ opt_rz. hugr_mut ( ) . update_validate ( & REGISTRY ) . unwrap ( ) ;
677
+ assert_eq ! ( opt_rz. commands( ) . count( ) , 2 ) ;
678
+ }
679
+
659
680
#[ rstest]
660
681
#[ ignore = "Loading the ECC set is really slow (~5 seconds)" ]
661
682
fn non_composable_rewrites (
You can’t perform that action at this time.
0 commit comments