As discussed on 12/04, we decided to describe the plaquettes with a 16 character string (and 3 spaces).
See below for a description of the format.
We need to have a function to validate the RPNG string and a function that generate the plaquette given the RPNG string.
Example of a RPNG string and description of the format:
-z1- -z2- -z3- -z4-
rpng rpng rpng rpng
(r) data qubit reset basis or h or -
(p) data basis for the controlled operation (x means CNOT controlled on the ancilla and targeting the data qubit, y means CY, z means CZ)
(n) time step (positive integers, all distinct, typically in 1-5)
(g) data qubit measure basis or h or -
Assumptions on the circuit:
- if not otherwise stated, a basis can be {x,y,z}
- the ancilla is always initialized in $\ket{+}$ and measured in the X basis
- the ancilla is always the control qubit for the CNOT, CY, or CZ gates
As discussed on 12/04, we decided to describe the plaquettes with a 16 character string (and 3 spaces).
See below for a description of the format.
We need to have a function to validate the RPNG string and a function that generate the plaquette given the RPNG string.
Example of a RPNG string and description of the format:
(r) data qubit reset basis or h or -
(p) data basis for the controlled operation (x means CNOT controlled on the ancilla and targeting the data qubit, y means CY, z means CZ)
(n) time step (positive integers, all distinct, typically in 1-5)
(g) data qubit measure basis or h or -
Assumptions on the circuit: