roseopicta

Results 20 comments of roseopicta

I dived into this as part of Unitaryhack. A fix of `PauliSumExponential` seems unlikely, because the faulty behavior is not specific to this op. For example: ``` >>>cirq.unitary(cirq.DensePauliString('XI')(*cirq.LineQubit.range(2))) [[0.+0.j 1.+0.j]...

Thanks! I actually found a flaw in my reasoning and `PauliStringPhasorGate` does not always produce the expected result and needs to be modified to handle identity correctly. The documentation states...

After several red herrings in the internals of `PauliString`, `PauliSum` and `PauliStringPhasor`, I wonder if there is actually much to do at all! The current implementation of `PauliSumExponential` can already...

Current status: * Fixed the extra qubits bug in ```PauliStringPhasor``` * Made sure ```PauliStringPhasor``` returned the right unitaries by adding extra ```I``` gates whenever necessary. * Fixed ```PauliStringPhasor``` to ensure...

Yes, I tried to follow that logic, see my first message. To summarize: * The `DensePauliString` is converted into a `PauliString` as soon as `on()` is applied to it, and...

This is the CL that introduced the extra qubits to `PauliStringPhasor`: https://github.com/quantumlib/Cirq/pull/5565 I'm really sorry to resort to this, but could maybe @dabacon or @Strilanc take a look at the...

I genuinely thought I did the right thing by reporting and documenting issues in a closely related part of the code, and by avoiding modifying code in a way that...

I don't know if this has been implemented, but since I had to mess with the rendering code for the herald bug fix, I quickly did it (through an `IDENTITY`...

Would you be interested in a PR for this feature? I did it as part of my fix of the herald rendering bug (unitaryhack task).

Would that be the expected output? ![pdisplay_circuit_herald_in](https://github.com/Quandela/Perceval/assets/171129116/beab5742-a610-4289-9048-ce14d750d0db) ![pdisplay_circuit_herald_out](https://github.com/Quandela/Perceval/assets/171129116/199e63e0-6c84-4135-9c7e-e5b32c31e69d) ![pdisplay_processor_1](https://github.com/Quandela/Perceval/assets/171129116/9c1cef6e-8112-41da-ba0c-c3b6bae8a778) I found two other issues in the rendering code: * Occasionally, heralds were not moved inside their subblock and stayed on...