1. A quantum processor comprising: a first superconducting flux qubit including a first coupling portion and a first switch in parallel with the first coupling portion of the first superconducting flux qubit; a second superconducting flux qubit including a second coupling portion and a second switch in parallel with the second coupling portion of the second superconducting flux qubit; a coupler including: a first coupling portion; a second coupling portion; a third switch in parallel with the first coupling portion of the coupler, and the first coupling portion of the coupler is arranged with respect to the first coupling portion of the first superconducting flux qubit to effect a magnetic coupling between the first superconducting flux qubit and the coupler, a fourth switch in parallel with the second coupling portion of the coupler, and the second coupling portion of the coupler is arranged with respect to the second coupling portion of the second superconducting flux qubit to effect a magnetic coupling between the second superconducting flux qubit and the coupler; and a first interface to control the first switch, the second switch, the third switch, and the fourth switch to couple the first superconducting flux qubit with the second superconducting flux qubit via the coupler.