QuantumSavory / QuantumClifford.jl

Clifford circuits, graph states, and other quantum Stabilizer formalism tools.
MIT License
113 stars 45 forks source link

Upside down encoding circuits #189

Open amicciche opened 1 year ago

amicciche commented 1 year ago

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

Krastanov commented 1 year ago

Ah, yes! Although I think it is

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

Maybe I should modify this...