Skip to content

Commit

Permalink
Print the table to the terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
inmzhang committed Jul 4, 2024
1 parent c0057db commit 7a717d1
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion spinoza/examples/ccx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn x(n: usize, show_results: bool) {
let elapsed = now.elapsed().as_micros();
println!("{}", pretty_print_int(elapsed));
if show_results {
to_table(&state);
println!("{}", to_table(&state));
}
}

Expand Down
2 changes: 1 addition & 1 deletion spinoza/examples/h.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn h(n: usize, show_results: bool) {
let elapsed = now.elapsed().as_micros();
println!("{}", pretty_print_int(elapsed));
if show_results {
to_table(&state);
println!("{}", to_table(&state));
}
}

Expand Down
2 changes: 1 addition & 1 deletion spinoza/examples/p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn p(n: usize, show_results: bool) {
let elapsed = now.elapsed().as_micros();
println!("{}", pretty_print_int(elapsed));
if show_results {
to_table(&state);
println!("{}", to_table(&state));
}
}

Expand Down
2 changes: 1 addition & 1 deletion spinoza/examples/pauli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn pauli_functional(n: usize, show_results: bool) {
let elapsed = now.elapsed().as_micros();
println!("{}", pretty_print_int(elapsed));
if show_results {
to_table(&state);
println!("{}", to_table(&state));
}
}

Expand Down
2 changes: 1 addition & 1 deletion spinoza/examples/qcbm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub fn qcbm_functional(n: usize, show_results: bool) {
let elapsed = now.elapsed().as_micros();
println!("{}", pretty_print_int(elapsed));
if show_results {
to_table(&state);
println!("{}", to_table(&state));
}
}

Expand Down
2 changes: 1 addition & 1 deletion spinoza/examples/rx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn rx(n: usize, show_results: bool) {
let elapsed = now.elapsed().as_micros();
println!("{}", pretty_print_int(elapsed));
if show_results {
to_table(&state);
println!("{}", to_table(&state));
}
}

Expand Down
2 changes: 1 addition & 1 deletion spinoza/examples/ry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn ry(n: usize, show_results: bool) {
let elapsed = now.elapsed().as_micros();
println!("{}", pretty_print_int(elapsed));
if show_results {
to_table(&state);
println!("{}", to_table(&state));
}
}

Expand Down
2 changes: 1 addition & 1 deletion spinoza/examples/rz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn rz(n: usize, show_results: bool) {
let elapsed = now.elapsed().as_micros();
println!("{}", pretty_print_int(elapsed));
if show_results {
to_table(&state);
println!("{}", to_table(&state));
}
}

Expand Down
2 changes: 1 addition & 1 deletion spinoza/examples/u.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn u(n: usize, show_results: bool) {
let elapsed = now.elapsed().as_micros();
println!("{}", pretty_print_int(elapsed));
if show_results {
to_table(&state);
println!("{}", to_table(&state));
}
}

Expand Down
2 changes: 1 addition & 1 deletion spinoza/examples/value_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn value_encoding(n: usize, show_results: bool) {
let elapsed = now.elapsed().as_micros();
println!("{}", pretty_print_int(elapsed));
if show_results {
to_table(&state);
println!("{}", to_table(&state));
}
}

Expand Down
2 changes: 1 addition & 1 deletion spinoza/examples/x.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn x(n: usize, show_results: bool) {
let elapsed = now.elapsed().as_micros();
println!("{}", pretty_print_int(elapsed));
if show_results {
to_table(&state);
println!("{}", to_table(&state));
}
}

Expand Down
2 changes: 1 addition & 1 deletion spinoza/examples/y.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn y(n: usize, show_results: bool) {
let elapsed = now.elapsed().as_micros();
println!("{}", pretty_print_int(elapsed));
if show_results {
to_table(&state);
println!("{}", to_table(&state));
}
}

Expand Down
2 changes: 1 addition & 1 deletion spinoza/examples/z.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn z(n: usize, show_results: bool) {
let elapsed = now.elapsed().as_micros();
println!("{}", pretty_print_int(elapsed));
if show_results {
to_table(&state);
println!("{}", to_table(&state));
}
}

Expand Down

0 comments on commit 7a717d1

Please sign in to comment.