A superconducting quantum-mechanical device, comprising: a first Josephson junction, a second Josephson junction electrically connected to the first Josephson junction, a third Josephson junction electrically connected to the second Josephson junction and a fourth Josephson junction electrically connected to the third Josephson junction and the first Josephson junction such that the first, second, third and fourth Josephson junctions are connected in a bridge circuit having a first resonance eigenmode, a second resonance eigenmode and a third resonance eigenmode; a first capacitor pad electrically connected to said first and fourth Josephson junctions (102, 108) at a node therebetween, and a second capacitor pad electrically connected to said second and third Josephson junctions (104, 106) at a node therebetween such that said first capacitor pad, said second capacitor pad and said bridge circuit form a superconducting qubit, said superconducting qubit having a resonance frequency corresponding to said first resonance eigenmode of said bridge circuit; a first resonator section electrically connected to said first and second Josephson junctions (102, 104) at a node therebetween, and a second resonator section electrically connected to said third and fourth Josephson junctions (106, 108) at a node therebetween such that said first resonator section, said second resonator section and said bridge circuit form a resonator having a resonance frequency corresponding to said second resonance eigenmode; and a source of magnetic flux arranged proximate said bridge circuit, wherein said source of magnetic flux is configured to provide, during operation, a magnetic flux through said bridge circuit to cause coupling between said first, second and third resonance eigenmodes when said third resonance eigenmode is excited. a first Josephson junction, a second Josephson junction electrically connected to the first Josephson junction, a third Josephson junction electrically connected to the second Josephson junction and a fourth Josephson junction electrically connected to the third Josephson junction and the first Josephson junction such that the first, second, third and fourth Josephson junctions are connected in a bridge circuit having a first resonance eigenmode, a second resonance eigenmode and a third resonance eigenmode; a first capacitor pad electrically connected to said first and fourth Josephson junctions (102, 108) at a node therebetween, and a second capacitor pad electrically connected to said second and third Josephson junctions (104, 106) at a node therebetween such that said first capacitor pad, said second capacitor pad and said bridge circuit form a superconducting qubit, said superconducting qubit having a resonance frequency corresponding to said first resonance eigenmode of said bridge circuit; a first resonator section electrically connected to said first and second Josephson junctions (102, 104) at a node therebetween, and a second resonator section electrically connected to said third and fourth Josephson junctions (106, 108) at a node therebetween such that said first resonator section, said second resonator section and said bridge circuit form a resonator having a resonance frequency corresponding to said second resonance eigenmode; and a source of magnetic flux arranged proximate said bridge circuit, wherein said source of magnetic flux is configured to provide, during operation, a magnetic flux through said bridge circuit to cause coupling between said first, second and third resonance eigenmodes when said third resonance eigenmode is excited.