File tree Expand file tree Collapse file tree
crates/pecos-gpu-sims/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2981,23 +2981,23 @@ mod tests {
29812981 }
29822982 let num_shots = sim. num_shots ( ) ;
29832983
2984- let results = sim. run_batched ( |s| {
2985- // Simple circuit: put first qubit in |0> state and measure
2986- s. mz ( & [ QubitId ( 0 ) ] )
2987- } ) ;
2984+ let results = sim. run_batched ( |s| {
2985+ // Simple circuit: put first qubit in |0> state and measure
2986+ s. mz ( & [ QubitId ( 0 ) ] )
2987+ } ) ;
29882988
2989- // Should have exactly num_shots results
2990- assert_eq ! (
2991- results. len( ) ,
2992- num_shots,
2993- "Should have results for all shots"
2994- ) ;
2989+ // Should have exactly num_shots results
2990+ assert_eq ! (
2991+ results. len( ) ,
2992+ num_shots,
2993+ "Should have results for all shots"
2994+ ) ;
29952995
2996- // All should measure 0 (qubit starts in |0>)
2997- for result in & results {
2998- assert_eq ! ( result. len( ) , 1 ) ;
2999- assert ! ( !result[ 0 ] , "Qubit in |0> should measure 0" ) ;
3000- }
2996+ // All should measure 0 (qubit starts in |0>)
2997+ for result in & results {
2998+ assert_eq ! ( result. len( ) , 1 ) ;
2999+ assert ! ( !result[ 0 ] , "Qubit in |0> should measure 0" ) ;
3000+ }
30013001 } ) ;
30023002 if result. is_err ( ) {
30033003 eprintln ! ( "test_run_batched_multiple_batches: skipped (GPU OOM or no driver)" ) ;
You can’t perform that action at this time.
0 commit comments