Renmusxd

Results 35 comments of Renmusxd

program! should work - it lives in qip-macro now since it's a procedural macro rather than a macro_rules! one.

program! Is a procedural macro, which means it is a bit of code that gets compiled before the rest then included into the compiler itself. Basically it lets the programmer...

That cfg thing you pointed out is a conditional compilation - basically it says "only try to compile this if the feature called 'macros' is enabled". Documentation [here](https://doc.rust-lang.org/reference/conditional-compilation.html)

I tried to run these examples and there are a large number of compiler errors: ``` cargo run --example bell_inequalities --all-features ``` Also to ensure people know to run with...

While you are still working on these I'm going to convert them to drafts, let me know once they are ready for review.

I believe the circuit3 is doing the correct thing - the reason you're getting that error for circuit1 is because you are passing `r` to `program!` but there's no variable...

Pulling your most recent commits I am not seeing the errors you are mentioning, that being said those are certainly rust related and not RustQIP related, so RustQIP docs will...

apply_function is basically like a single line of program! So that would be the most likely substitute.

Ill have some time to look over the PRs tomorrow - Thanks again!

run_local is a function that just runs the circuit through a specific backend, in this case the "local" one. Now that functionality is in the CircuitBuilder with the calculate_state function,...