[INFO] cloning repository https://github.com/qsld-org/qslrs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/qsld-org/qslrs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqsld-org%2Fqslrs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqsld-org%2Fqslrs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 7f788e93491f2573d345f1e1f5beea788d049588
[INFO] testing qsld-org/qslrs against 1.98.0-beta.1 for beta-1.98-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqsld-org%2Fqslrs" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/qsld-org/qslrs
[INFO] finished tweaking git repo https://github.com/qsld-org/qslrs
[INFO] tweaked toml for git repo https://github.com/qsld-org/qslrs written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/qsld-org/qslrs on toolchain 1.98.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/qsld-org/qslrs already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] d1f7fada48ff257310a29d5ef5234c79524be3c4f0ad5208dfc99e9e7cb82c5e
[INFO] running `Command { std: "docker" "start" "d1f7fada48ff257310a29d5ef5234c79524be3c4f0ad5208dfc99e9e7cb82c5e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d1f7fada48ff257310a29d5ef5234c79524be3c4f0ad5208dfc99e9e7cb82c5e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d1f7fada48ff257310a29d5ef5234c79524be3c4f0ad5208dfc99e9e7cb82c5e" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d1f7fada48ff257310a29d5ef5234c79524be3c4f0ad5208dfc99e9e7cb82c5e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d1f7fada48ff257310a29d5ef5234c79524be3c4f0ad5208dfc99e9e7cb82c5e" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling libc v0.2.186
[INFO] [stderr]    Compiling rand_core v0.10.1
[INFO] [stderr]    Compiling getrandom v0.4.2
[INFO] [stderr]    Compiling matrixmultiply v0.3.10
[INFO] [stderr]    Compiling typenum v1.20.0
[INFO] [stderr]    Compiling safe_arch v0.7.4
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]    Compiling chacha20 v0.10.0
[INFO] [stderr]    Compiling wide v0.7.33
[INFO] [stderr]    Compiling approx v0.5.1
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling num-complex v0.4.6
[INFO] [stderr]    Compiling num-rational v0.4.2
[INFO] [stderr]    Compiling rand v0.10.1
[INFO] [stderr]    Compiling simba v0.9.1
[INFO] [stderr]    Compiling nalgebra-macros v0.3.0
[INFO] [stderr]    Compiling qslrs_macros v0.1.0 (/opt/rustwide/workdir/qslrs_macros)
[INFO] [stderr]    Compiling nalgebra v0.34.2
[INFO] [stderr]    Compiling qslrs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.81s
[INFO] running `Command { std: "docker" "inspect" "d1f7fada48ff257310a29d5ef5234c79524be3c4f0ad5208dfc99e9e7cb82c5e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d1f7fada48ff257310a29d5ef5234c79524be3c4f0ad5208dfc99e9e7cb82c5e" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling zerocopy v0.8.48
[INFO] [stderr]    Compiling libc v0.2.186
[INFO] [stderr]    Compiling cc v1.2.61
[INFO] [stderr]    Compiling serde_json v1.0.149
[INFO] [stderr]    Compiling zerocopy-derive v0.8.48
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling approx v0.5.1
[INFO] [stderr]    Compiling num-complex v0.4.6
[INFO] [stderr]    Compiling num-rational v0.4.2
[INFO] [stderr]    Compiling regex-automata v0.4.14
[INFO] [stderr]    Compiling clap_builder v4.6.0
[INFO] [stderr]    Compiling getrandom v0.4.2
[INFO] [stderr]    Compiling itertools v0.13.0
[INFO] [stderr]    Compiling plotters v0.3.7
[INFO] [stderr]    Compiling page_size v0.6.0
[INFO] [stderr]    Compiling rand v0.10.1
[INFO] [stderr]    Compiling simba v0.9.1
[INFO] [stderr]    Compiling alloca v0.4.0
[INFO] [stderr]    Compiling regex v1.12.3
[INFO] [stderr]    Compiling criterion-plot v0.8.2
[INFO] [stderr]    Compiling qslrs_macros v0.1.0 (/opt/rustwide/workdir/qslrs_macros)
[INFO] [stderr]    Compiling clap v4.6.1
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling tinytemplate v1.2.1
[INFO] [stderr]    Compiling nalgebra v0.34.2
[INFO] [stderr]    Compiling half v2.7.1
[INFO] [stderr]    Compiling ciborium-ll v0.2.2
[INFO] [stderr]    Compiling ciborium v0.2.2
[INFO] [stderr]    Compiling criterion v0.8.2
[INFO] [stderr]    Compiling qslrs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 29.57s
[INFO] running `Command { std: "docker" "inspect" "d1f7fada48ff257310a29d5ef5234c79524be3c4f0ad5208dfc99e9e7cb82c5e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d1f7fada48ff257310a29d5ef5234c79524be3c4f0ad5208dfc99e9e7cb82c5e" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/qslrs-8f4cd9babfede313)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests qslrs
[INFO] [stdout] 
[INFO] [stdout] running 31 tests
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::cnot (line 465) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::hadamard (line 289) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::ch (line 332) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::cz (line 507) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::no_visualization (line 238) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::mcz (line 595) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::measure_many (line 1180) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::measure (line 1106) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::reset_state (line 263) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::pauli_noise (line 923) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::rz (line 781) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::s (line 542) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::pauli_z (line 439) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::pauli_x (line 373) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::measure_all (line 1266) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::depolarizing_noise (line 898) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuitBuilder::initial_state_idx (line 84) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::cr_inv (line 856) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::iswap (line 670) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuitBuilder::num_qubits (line 68) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::phase_flip_noise (line 973) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::pauli_y (line 411) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::bit_phase_flip_noise (line 998) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::expectation_value (line 1023) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::bit_flip_noise (line 948) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::t (line 568) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::ry (line 743) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::cr (line 814) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::rx (line 706) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuitBuilder (line 38) ... FAILED
[INFO] [stdout] test src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::swap (line 631) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::cnot (line 465) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:471:13
[INFO] [stdout]     |
[INFO] [stdout] 466 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_465_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 471 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 466 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_465_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 467 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 474 | qc.hadamard(0).cnot(0, 1);
[INFO] [stdout] 475 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::hadamard (line 289) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:295:13
[INFO] [stdout]     |
[INFO] [stdout] 290 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_289_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 295 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 290 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_289_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 291 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 297 | qc.hadamard(0);
[INFO] [stdout] 298 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::ch (line 332) stdout ----
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:334:51
[INFO] [stdout]     |
[INFO] [stdout] 334 | use qslrs::quantum::pure_state::qc::QuantumCircuit
[INFO] [stdout]     |                                                   ^ help: add `;` here
[INFO] [stdout] 335 |
[INFO] [stdout] 336 | let mut qc = QuantumCircuit::builder()
[INFO] [stdout]     | --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:339:13
[INFO] [stdout]     |
[INFO] [stdout] 333 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_332_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 339 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 333 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_332_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 334 | use qslrs::quantum::pure_state::qc::QuantumCircuit
[INFO] [stdout] ...
[INFO] [stdout] 341 | qc.ch(0, 1);
[INFO] [stdout] 342 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::cz (line 507) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:513:13
[INFO] [stdout]     |
[INFO] [stdout] 508 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_507_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 513 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 508 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_507_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 509 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 515 | qc.pauli_x(0).pauli_x(1).cz(0, 1);
[INFO] [stdout] 516 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::no_visualization (line 238) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:244:13
[INFO] [stdout]     |
[INFO] [stdout] 239 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_238_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 244 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 239 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_238_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 240 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 246 | qc.hadamard(0).no_visualization();
[INFO] [stdout] 247 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::mcz (line 595) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:602:13
[INFO] [stdout]     |
[INFO] [stdout] 596 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_595_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 602 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 596 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_595_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 597 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 604 | qc.mcz(&[0, 1, 2]);
[INFO] [stdout] 605 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::measure_many (line 1180) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]     --> src/quantum/pure_state/qc.rs:1187:13
[INFO] [stdout]      |
[INFO] [stdout] 1181 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_1180_0() {
[INFO] [stdout]      |                                      ------------------------------------------------------ this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 1187 |     .build()?;
[INFO] [stdout]      |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]      |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]      |
[INFO] [stdout] 1181 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_1180_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 1182 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout]  ...
[INFO] [stdout] 1189 | println!("{}", qc.hadamard(0).cnot(0, 1).measure_many(&[0, 1]));
[INFO] [stdout] 1190 +     Ok(())
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::measure (line 1106) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]     --> src/quantum/pure_state/qc.rs:1113:13
[INFO] [stdout]      |
[INFO] [stdout] 1107 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_1106_0() {
[INFO] [stdout]      |                                      ------------------------------------------------------ this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 1113 |     .build()?;
[INFO] [stdout]      |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]      |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]      |
[INFO] [stdout] 1107 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_1106_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 1108 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout]  ...
[INFO] [stdout] 1115 | println!("{}", qc.hadamard(0).measure(0));
[INFO] [stdout] 1116 +     Ok(())
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::reset_state (line 263) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:267:61
[INFO] [stdout]     |
[INFO] [stdout] 264 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_263_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 267 | let mut qc = QuantumCircuit::builder().num_qubits(2).build()?;
[INFO] [stdout]     |                                                             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 264 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_263_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 265 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 273 | qc.hadamard(0);
[INFO] [stdout] 274 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::pauli_noise (line 923) stdout ----
[INFO] [stdout] error[E0433]: cannot find type `PauliNoiseConfig` in this scope
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:927:16
[INFO] [stdout]     |
[INFO] [stdout] 927 | let p_config = PauliNoiseConfig::new([0, 1].to_vec(), [0.7, 0.7].to_vec());
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^ use of undeclared type `PauliNoiseConfig`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:931:13
[INFO] [stdout]     |
[INFO] [stdout] 924 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_923_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 931 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 924 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_923_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 925 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 933 | qc.hadamard(0).pauli_noise()?.cnot(0, 1);
[INFO] [stdout] 934 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:933:29
[INFO] [stdout]     |
[INFO] [stdout] 924 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_923_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 933 | qc.hadamard(0).pauli_noise()?.cnot(0, 1);
[INFO] [stdout]     |                             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 924 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_923_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 925 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 933 | qc.hadamard(0).pauli_noise()?.cnot(0, 1);
[INFO] [stdout] 934 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::rz (line 781) stdout ----
[INFO] [stdout] error: expected `::`, found `:`
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:783:21
[INFO] [stdout]     |
[INFO] [stdout] 783 | use std::f64::consts:PI;
[INFO] [stdout]     |                     ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: import paths are delimited using `::`
[INFO] [stdout] help: use double colon
[INFO] [stdout]     |
[INFO] [stdout] 783 | use std::f64::consts::PI;
[INFO] [stdout]     |                      +
[INFO] [stdout] 
[INFO] [stdout] error: expected `::`, found `:`
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:784:19
[INFO] [stdout]     |
[INFO] [stdout] 784 | use qslrs::quantum:pure_state::qc::QuantumCircuit;
[INFO] [stdout]     |                   ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: import paths are delimited using `::`
[INFO] [stdout] help: use double colon
[INFO] [stdout]     |
[INFO] [stdout] 784 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout]     |                    +
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:788:13
[INFO] [stdout]     |
[INFO] [stdout] 782 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_781_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 788 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 782 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_781_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 783 | use std::f64::consts:PI;
[INFO] [stdout] ...
[INFO] [stdout] 790 | qc.rz(0, PI / 4.0);
[INFO] [stdout] 791 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::s (line 542) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:548:13
[INFO] [stdout]     |
[INFO] [stdout] 543 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_542_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 548 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 543 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_542_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 544 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 550 | qc.pauli_x(0).s(0);
[INFO] [stdout] 551 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::pauli_z (line 439) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:445:13
[INFO] [stdout]     |
[INFO] [stdout] 440 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_439_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 445 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 440 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_439_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 441 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 447 | qc.pauli_x(0).pauli_z(0);
[INFO] [stdout] 448 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::pauli_x (line 373) stdout ----
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:375:51
[INFO] [stdout]     |
[INFO] [stdout] 375 | use qslrs::quantum::pure_state::qc::QuantumCircuit
[INFO] [stdout]     |                                                   ^ help: add `;` here
[INFO] [stdout] 376 |
[INFO] [stdout] 377 | let mut qc = QuantumCircuit::builder()
[INFO] [stdout]     | --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:379:13
[INFO] [stdout]     |
[INFO] [stdout] 374 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_373_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 379 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 374 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_373_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 375 | use qslrs::quantum::pure_state::qc::QuantumCircuit
[INFO] [stdout] ...
[INFO] [stdout] 381 | qc.pauli_x(0);
[INFO] [stdout] 382 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::measure_all (line 1266) stdout ----
[INFO] [stdout] error: expected `,`, found `.`
[INFO] [stdout]     --> src/quantum/pure_state/qc.rs:1275:14
[INFO] [stdout]      |
[INFO] [stdout] 1275 | println!("{}". qc.hadamard(0).cnot(0, 1).measure_all());
[INFO] [stdout]      |              ^ expected `,`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]     --> src/quantum/pure_state/qc.rs:1273:13
[INFO] [stdout]      |
[INFO] [stdout] 1267 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_1266_0() {
[INFO] [stdout]      |                                      ------------------------------------------------------ this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 1273 |     .build()?;
[INFO] [stdout]      |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]      |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]      |
[INFO] [stdout] 1267 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_1266_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 1268 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout]  ...
[INFO] [stdout] 1275 | println!("{}". qc.hadamard(0).cnot(0, 1).measure_all());
[INFO] [stdout] 1276 +     Ok(())
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::depolarizing_noise (line 898) stdout ----
[INFO] [stdout] error[E0433]: cannot find type `DepolarizingNoiseConfig` in this scope
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:902:16
[INFO] [stdout]     |
[INFO] [stdout] 902 | let d_config = DepolarizingNoiseConfig::new([0, 1].to_vec(), [0.7, 0.7].to_vec());
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `DepolarizingNoiseConfig`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:906:13
[INFO] [stdout]     |
[INFO] [stdout] 899 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_898_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 906 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 899 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_898_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 900 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 908 | qc.hadamard(0).depolarizing_noise()?.cnot(0, 1);
[INFO] [stdout] 909 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:908:36
[INFO] [stdout]     |
[INFO] [stdout] 899 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_898_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 908 | qc.hadamard(0).depolarizing_noise()?.cnot(0, 1);
[INFO] [stdout]     |                                    ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 899 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_898_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 900 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 908 | qc.hadamard(0).depolarizing_noise()?.cnot(0, 1);
[INFO] [stdout] 909 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuitBuilder::initial_state_idx (line 84) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/quantum/pure_state/qc.rs:91:13
[INFO] [stdout]    |
[INFO] [stdout] 85 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_84_0() {
[INFO] [stdout]    |                                      ---------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 91 |     .build()?;
[INFO] [stdout]    |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]    |
[INFO] [stdout] 85 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_84_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 86 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 91 |     .build()?;
[INFO] [stdout] 92 +     Ok(())
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::cr_inv (line 856) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:862:13
[INFO] [stdout]     |
[INFO] [stdout] 857 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_856_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 862 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 857 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_856_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 858 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 867 | qc.hadamard(1);
[INFO] [stdout] 868 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:866:17
[INFO] [stdout]     |
[INFO] [stdout] 866 | qc.cr_inv(0, 1, 2);
[INFO] [stdout]     |    ------       ^ expected `f64`, found integer
[INFO] [stdout]     |    |
[INFO] [stdout]     |    arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:868:12
[INFO] [stdout]     |
[INFO] [stdout] 868 |     pub fn cr_inv(&mut self, control_qubit_idx: u32, target_qubit_idx: u32, k: f64) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] help: use a float literal
[INFO] [stdout]     |
[INFO] [stdout] 866 | qc.cr_inv(0, 1, 2.0);
[INFO] [stdout]     |                  ++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::iswap (line 670) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:677:13
[INFO] [stdout]     |
[INFO] [stdout] 671 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_670_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 677 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 671 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_670_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 672 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 679 | qc.iswap(0, 1);
[INFO] [stdout] 680 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuitBuilder::num_qubits (line 68) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/quantum/pure_state/qc.rs:74:13
[INFO] [stdout]    |
[INFO] [stdout] 69 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_68_0() {
[INFO] [stdout]    |                                      ---------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 74 |     .build()?;
[INFO] [stdout]    |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]    |
[INFO] [stdout] 69 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_68_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 70 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 74 |     .build()?;
[INFO] [stdout] 75 +     Ok(())
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::phase_flip_noise (line 973) stdout ----
[INFO] [stdout] error[E0433]: cannot find type `PhaseFlipNoiseConfig` in this scope
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:977:16
[INFO] [stdout]     |
[INFO] [stdout] 977 | let p_config = PhaseFlipNoiseConfig::new([0, 1].to_vec(), [0.7, 0.7].to_vec());
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `PhaseFlipNoiseConfig`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:981:13
[INFO] [stdout]     |
[INFO] [stdout] 974 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_973_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 981 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 974 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_973_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 975 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 983 | qc.hadamard(0).phase_flip_noise().cnot(0, 1);
[INFO] [stdout] 984 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::pauli_y (line 411) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:417:13
[INFO] [stdout]     |
[INFO] [stdout] 412 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_411_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 417 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 412 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_411_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 413 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 419 | qc.pauli_y(0);
[INFO] [stdout] 420 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::bit_phase_flip_noise (line 998) stdout ----
[INFO] [stdout] error[E0433]: cannot find type `BitPhaseFlipNoiseConfig` in this scope
[INFO] [stdout]     --> src/quantum/pure_state/qc.rs:1002:17
[INFO] [stdout]      |
[INFO] [stdout] 1002 | let bp_config = BitPhaseFlipNoiseConfig::new([0, 1].to_vec(), [0.7, 0.7].to_vec());
[INFO] [stdout]      |                 ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `BitPhaseFlipNoiseConfig`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]     --> src/quantum/pure_state/qc.rs:1006:13
[INFO] [stdout]      |
[INFO] [stdout]  999 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_998_0() {
[INFO] [stdout]      |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 1006 |     .build()?;
[INFO] [stdout]      |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]      |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]      |
[INFO] [stdout]  999 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_998_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] [stdout] 1000 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout]  ...
[INFO] [stdout] 1008 | qc.hadamard(0).bit_phase_flip_noise().cnot(0, 1);
[INFO] [stdout] 1009 +     Ok(())
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::expectation_value (line 1023) stdout ----
[INFO] [stdout] error: expected `::`, found `:`
[INFO] [stdout]     --> src/quantum/pure_state/qc.rs:1025:36
[INFO] [stdout]      |
[INFO] [stdout] 1025 | use qslrs::quantum::pure_state::{qc:QuantumCircuit, observable::Observable};
[INFO] [stdout]      |                                    ^
[INFO] [stdout]      |
[INFO] [stdout]      = note: import paths are delimited using `::`
[INFO] [stdout] help: use double colon
[INFO] [stdout]      |
[INFO] [stdout] 1025 | use qslrs::quantum::pure_state::{qc::QuantumCircuit, observable::Observable};
[INFO] [stdout]      |                                     +
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]     --> src/quantum/pure_state/qc.rs:1031:13
[INFO] [stdout]      |
[INFO] [stdout] 1024 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_1023_0() {
[INFO] [stdout]      |                                      ------------------------------------------------------ this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 1031 |     .build()?;
[INFO] [stdout]      |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]      |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]      |
[INFO] [stdout] 1024 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_1023_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 1025 | use qslrs::quantum::pure_state::{qc:QuantumCircuit, observable::Observable};
[INFO] [stdout]  ...
[INFO] [stdout] 1037 | println!("{}", qc.hadamard(0).rz(0, PI / 4.0).expectation_value(obs));
[INFO] [stdout] 1038 +     Ok(())
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]     --> src/quantum/pure_state/qc.rs:1037:65
[INFO] [stdout]      |
[INFO] [stdout] 1037 | println!("{}", qc.hadamard(0).rz(0, PI / 4.0).expectation_value(obs));
[INFO] [stdout]      |                                               ----------------- ^^^ expected `&Observable`, found `Observable`
[INFO] [stdout]      |                                               |
[INFO] [stdout]      |                                               arguments to this method are incorrect
[INFO] [stdout]      |
[INFO] [stdout] note: method defined here
[INFO] [stdout]     --> src/quantum/pure_state/qc.rs:1038:12
[INFO] [stdout]      |
[INFO] [stdout] 1038 |     pub fn expectation_value(&self, obs: &Observable) -> f64 {
[INFO] [stdout]      |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]      |
[INFO] [stdout] 1037 | println!("{}", qc.hadamard(0).rz(0, PI / 4.0).expectation_value(&obs));
[INFO] [stdout]      |                                                                 +
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::bit_flip_noise (line 948) stdout ----
[INFO] [stdout] error[E0433]: cannot find type `BitFlipNoiseConfig` in this scope
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:952:16
[INFO] [stdout]     |
[INFO] [stdout] 952 | let b_config = BitFlipNoiseConfig::new([0, 1].to_vec(), [0.7, 0.7].to_vec());
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^ use of undeclared type `BitFlipNoiseConfig`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:956:13
[INFO] [stdout]     |
[INFO] [stdout] 949 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_948_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 956 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 949 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_948_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 950 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 958 | qc.hadamard(0).bit_flip_noise().cnot(0, 1);
[INFO] [stdout] 959 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::t (line 568) stdout ----
[INFO] [stdout] error[E0433]: cannot find type `Quantumcircuit` in this scope
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:572:14
[INFO] [stdout]     |
[INFO] [stdout] 572 | let mut qc = Quantumcircuit::builder()
[INFO] [stdout]     |              ^^^^^^^^^^^^^^ use of undeclared type `Quantumcircuit`
[INFO] [stdout]     |
[INFO] [stdout] help: a struct with a similar name exists (notice the capitalization)
[INFO] [stdout]     |
[INFO] [stdout] 572 - let mut qc = Quantumcircuit::builder()
[INFO] [stdout] 572 + let mut qc = QuantumCircuit::builder()
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::ry (line 743) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:750:13
[INFO] [stdout]     |
[INFO] [stdout] 744 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_743_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 750 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 744 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_743_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 745 | use std::f64::consts::PI;
[INFO] [stdout] ...
[INFO] [stdout] 752 | qc.ry(0, PI / 4.0);
[INFO] [stdout] 753 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::cr (line 814) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:820:13
[INFO] [stdout]     |
[INFO] [stdout] 815 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_814_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 820 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 815 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_814_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 816 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 825 | qc.hadamard(1);
[INFO] [stdout] 826 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:824:13
[INFO] [stdout]     |
[INFO] [stdout] 824 | qc.cr(0, 1, 2);
[INFO] [stdout]     |    --       ^ expected `f64`, found integer
[INFO] [stdout]     |    |
[INFO] [stdout]     |    arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:826:12
[INFO] [stdout]     |
[INFO] [stdout] 826 |     pub fn cr(&mut self, control_qubit_idx: u32, target_qubit_idx: u32, k: f64) -> &mut Self {
[INFO] [stdout]     |            ^^
[INFO] [stdout] help: use a float literal
[INFO] [stdout]     |
[INFO] [stdout] 824 | qc.cr(0, 1, 2.0);
[INFO] [stdout]     |              ++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::rx (line 706) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:713:13
[INFO] [stdout]     |
[INFO] [stdout] 707 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_706_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 713 |     .build()?;
[INFO] [stdout]     |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 707 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_706_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 708 | use std::f64::consts::PI;
[INFO] [stdout] ...
[INFO] [stdout] 715 | qc.rx(0, PI / 4.0);
[INFO] [stdout] 716 +     Ok(())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuitBuilder (line 38) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/quantum/pure_state/qc.rs:45:13
[INFO] [stdout]    |
[INFO] [stdout] 39 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_38_0() {
[INFO] [stdout]    |                                      ---------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 45 |     .build()?;
[INFO] [stdout]    |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]    |
[INFO] [stdout] 39 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_quantum_pure_state_qc_rs_38_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 40 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout] ...
[INFO] [stdout] 45 |     .build()?;
[INFO] [stdout] 46 +     Ok(())
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::swap (line 631) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `qslrs::quantum::pure_state::qc::QuatumCircuit`
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:633:5
[INFO] [stdout]     |
[INFO] [stdout] 633 | use qslrs::quantum::pure_state::qc::QuatumCircuit;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------------
[INFO] [stdout]     |                                     |
[INFO] [stdout]     |                                     no `QuatumCircuit` in `quantum::pure_state::qc`
[INFO] [stdout]     |
[INFO] [stdout] help: a similar name exists in the module
[INFO] [stdout]     |
[INFO] [stdout] 633 | use qslrs::quantum::pure_state::qc::QuantumCircuit;
[INFO] [stdout]     |                                        +
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `QuantumCircuit` in this scope
[INFO] [stdout]    --> src/quantum/pure_state/qc.rs:635:14
[INFO] [stdout]     |
[INFO] [stdout] 635 | let mut qc = QuantumCircuit::builder()
[INFO] [stdout]     |              ^^^^^^^^^^^^^^ use of undeclared type `QuantumCircuit`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::bit_flip_noise (line 948)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::bit_phase_flip_noise (line 998)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::ch (line 332)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::cnot (line 465)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::cr (line 814)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::cr_inv (line 856)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::cz (line 507)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::depolarizing_noise (line 898)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::expectation_value (line 1023)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::hadamard (line 289)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::iswap (line 670)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::mcz (line 595)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::measure (line 1106)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::measure_all (line 1266)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::measure_many (line 1180)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::no_visualization (line 238)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::pauli_noise (line 923)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::pauli_x (line 373)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::pauli_y (line 411)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::pauli_z (line 439)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::phase_flip_noise (line 973)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::reset_state (line 263)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::rx (line 706)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::ry (line 743)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::rz (line 781)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::s (line 542)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::swap (line 631)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuit::t (line 568)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuitBuilder (line 38)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuitBuilder::initial_state_idx (line 84)
[INFO] [stdout]     src/quantum/pure_state/qc.rs - quantum::pure_state::qc::QuantumCircuitBuilder::num_qubits (line 68)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 31 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.71s
[INFO] [stdout] 
[INFO] [stdout] all doctests ran in 0.99s; merged doctests compilation took 0.28s
[INFO] running `Command { std: "docker" "inspect" "d1f7fada48ff257310a29d5ef5234c79524be3c4f0ad5208dfc99e9e7cb82c5e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d1f7fada48ff257310a29d5ef5234c79524be3c4f0ad5208dfc99e9e7cb82c5e", kill_on_drop: false }`
[INFO] [stdout] d1f7fada48ff257310a29d5ef5234c79524be3c4f0ad5208dfc99e9e7cb82c5e
