#benchmark #compiler #architecture #quantum

bin+lib bicycle_benchmark

Generates PBC circuits that can be used for benchmarking

1 unstable release

0.1.0 Jul 31, 2025

#439 in Science

26 downloads per month
Used in 2 crates

Apache-2.0

94KB
1.5K SLoC

bicyle_benchmark

The executable bicycle_benchmark prints an infinite stream random of nqubit Pauli-based rotations to stdout that have angle $\pi/4$ to a high accuracy.

The executable is invoked like this.

bicycle_benchmark nqubits

An example output of a rotation instruction printed for nqubits equal to 3 is

{"Rotation":{"basis":["I","Y","Y"],"angle":"0.78539816339744830961566084581"}}

Example benchmark

The executable bicycle_benchmark can be used like this

cargo run --package bicycle_benchmark <args> | cargo run --package bicycle_compiler <args> | cargo run --package bicycle_numerics <args>

However, the executable bicycle_random_numerics, found in the crate of the same name, instead uses the library function bicycle_benchmark::random::random_rotations. This is in order to avoid the overhead of (de)serialization to JSON.

Dependencies

~13MB
~233K SLoC