rigetti / qcs-sdk-rust

Rust SDK for Rigetti Quantum Cloud Services (QCS)
https://docs.rs/qcs
13 stars 5 forks source link

chore: add tests to reproduce libquil-sys compilation failure #404

Open jselig-rigetti opened 11 months ago

jselig-rigetti commented 11 months ago

I expect the error in crates/lib/src/compiler/libquil.rs to fail, or at least it does for me locally.

EDIT: running multiple tests seems to work, but running the individual test alone gives the error:

# passes
cargo test --package qcs --lib --features otel-tracing,libquil -- compiler::libquil::test::get_version_info_from_quilc compiler::libquil::test::test_parametric_compilation --nocapture

# fails
cargo test --package qcs --lib --features otel-tracing,libquil -- compiler::libquil::test::test_parametric_compilation --nocapture 

the error:

program should compile: QuilcCompilation(Libquil(Quilc(CompileProtoquil("arithmetic error DIVISION-BY-ZERO signalled"))))