Petar Korponaić
Petar Korponaić
I vote for `.inst()` or anything else but not `+=`. I am also not super-happy with `p.inst("X 0")`. I had difficulties with this while writing pyquil parser.
You’re welcome!
@simplygreatwork wow! Let’s talk privatelly, can you send me a email to one of addresses which you will find at https://quantastica.com ?
By the way, following gate matrices were changed this week: `rz`, `crz`, `r2`, `r4`, `r8`. If your code uses any of these gates then it will return different results with...
@tobiasBora you need to put `circuit.run()` before first measurement. addGate realy only adds gate to the circuit, doesn't execute the gate. ``` Measure bell state circuit = new QuantumCircuit(); circuit.addGate("h",...
P.S. you can use `measureAllMultishot(shots)` as well: ``` Measure bell state circuit = new QuantumCircuit(); circuit.addGate("h", -1, [0]); circuit.addGate("cx", -1, [0, 1]); // // Run the simulation // circuit.run(); //...
One more thing: when you do `measure()` for the first time (after `.run()`) it internally calls `measureAll()` which caches measurement results. Any call to `measure()` after that will give you...
When you add a gate, state is not changed. Remember: `addGate` adds a gate to the circuit but doesn't execute a gate. You need to do `run()` after modifying circuit...
I just tested - this will **not work**. Sorry, what you are trying to do is not implemented (adding gates on the fly while preserving state) However, why you don't...
Hi @adamisntdead added to list, thanks!