Damian Steiger

Results 16 comments of Damian Steiger

The question in #479 uses the `Simulator` which is a full-state simulator which stores the 2^n amplitudes in a vector for an n-qubit simulation and allows all operations. This code...

You want to use a measurement within the ```with Compute``` section? A reset or measurement of a qubit within the compute section is not possible (compiler would need to automatically...

Too many compiler engines. The compiler engines are given as a parameter (`engine_list`) when initialising the `MainEngine`. Further compiler engines are temporarily added when meta instructions are used. E.g. `with...

To reset a qubit, you can `Measure` the qubit and depending on the outcome flip it and then continue to use it. See example below. While the simulator allows a...

Does https://github.com/ProjectQ-Framework/ProjectQ/issues/477 solve the issue?

You can achieve this with a `ControlledGate` or `C()`, see https://projectq.readthedocs.io/en/latest/_doc_gen/projectq.ops.html#projectq.ops.ControlledGate