QuantumClifford.jl icon indicating copy to clipboard operation
QuantumClifford.jl copied to clipboard

Upside down encoding circuits

Open amicciche opened this issue 2 years ago • 1 comments

I pulled the newest commit, and it seems to be working well!

However, it seems the generated encoding circuits are now upside down; the qubits to be encoded are now the ones on the bottom, instead of the top. Is this to be the new convention of the library?

For example, previously a [5,2] code's encoding circuit implied a start like |c1> |c2> |0> |0> |0>

But with the most recent commit, it seems that that code's encoding circuit has an implied initial state of |0> |0> |0> |c2> |c1>

This isn't a big deal, but just wanted to point this out if it was unintentional.

An example output: This is the new Steane7 code: image

amicciche avatar Sep 18 '23 01:09 amicciche

Ah, yes! Although I think it is

|0>
|0>
|0>
|c1>
|c2>

Maybe I should modify this...

Krastanov avatar Sep 18 '23 03:09 Krastanov