Open dgrinko opened 4 days ago
Yeah, this is because occupied_locs
for rot
is not implemented correctly, or rotating over igate is not a local gate at all.
I made an atempt to fix this issue in the above PR.
For creating a phase shift, you can use the phase
gate as a more reliable solution:
julia> phase(0.3) |> mat
2×2 Diagonal{ComplexF64, Vector{ComplexF64}}:
0.955336+0.29552im ⋅
⋅ 0.955336+0.29552im
I am trying to visualise a circuit involving some rotation gates, which happen to be identity gates with some phase factors. For example, if I run
then I get the following error:
This is clearly a bug since plotting an identity gate with a constant phase factor should not be a problem :)