A quantum computer provided with a substrate of qubits arranged in repeated unit cells, wherein a data qubits are coupled to respective X-ancillary qubits and Z-ancillary qubits, wherein the X-ancillary qubits are capable of measuring a first quantum variable and the Z-ancillary qubits are capable of measuring a second quantum variable of said data qubits by a nearest neighbor interaction provided only between said data qubits and said ancillary qubits, wherein said nearest neighbor interaction is provided by detuning a transition frequency of any of the data qubits and ancillary qubits into a coupling frequency for providing a coherent 2-qubit gate, wherein a plurality of data qubits are provided on a first grid, wherein a unit cell comprises four data qubits;
- wherein a plurality of the X-ancillary qubits and the Z-ancillary qubits are provided on a second grid, and said second grid is shifted relative to the first grid so that one of the ancillary qubits is central to the four data qubits of the unit cell, and the X-ancillary qubits and Z-ancillary qubits are each further arranged in respective diametral positions relative to one of the data qubits of the unit cell, and said unit cell thereby further comprises two X-ancillary qubits and two Z-ancillary qubits;
- wherein each one of the data qubits is arranged to be subsequently brought in a coupling resonance with any of the X-ancillary qubits and Z-ancillary qubits by simultaneous coupling of a first ones of the ancillary qubits with a respective neighboring data qubit;
- and subsequent couplings of said first ones of the ancillary qubits with the other neighboring data qubits;
- followed by simultaneous coupling of a second ones of the ancillary qubits with a neighboring data qubit;
- and subsequent couplings of said second ancillary qubit with the other neighboring data qubits,
- wherein a first data qubits are kept operating at a first frequency, a second data qubits are kept operating at a third frequency on said grid, and said ancillary qubits are kept operating at a second frequency between said first and third frequencies;
- and wherein a coupling frequency is provided by detuning any of the first data qubits in an intermediate frequency between the first frequency and the second frequency;
- and wherein a coupling frequency is provided by detuning any of the ancillary qubits in an intermediate frequency between the second frequency and the third frequency, and said first frequency, said second frequency, and said third frequency are sufficiently different to avoid coupling of the data qubits and the ancillary qubits outside the coupling frequency, or
- wherein a first pair of the ancillary qubits are kept operating at a first frequency, a second pair of the ancillary qubits are kept operating at a third frequency, and said data qubits are kept operating at a second frequency between said first frequency and said third frequency;
- and wherein a coupling frequency is provided by detuning any of the first pair of the ancillary qubits in an intermediate frequency between the first frequency and the second frequency;
- and wherein a coupling frequency is provided by detuning any of the data qubits in an intermediate frequency between the second frequency and the third frequency, and said first second and said third frequency are sufficiently different to avoid coupling of the data qubits and the ancillary qubits outside the coupling frequency.