A controller for a heart pump, the controller including a processing system for determining movement of an impeller within a cavity in a first axial direction, the cavity including at least one inlet and at least one outlet, and the impeller including vanes for urging fluid from the inlet to the outlet, causing a magnetic bearing to move the impeller in a second axial direction opposite the first axial direction, the magnetic bearing including at least one coil for controlling an axial position of the impeller within the cavity, determining an indicator indicative of the power used by the magnetic bearing and causing the magnetic bearing to control the axial position of the impeller in accordance with the indicator to thereby control a fluid flow between the inlet and the outlet.心臓ポンプであって、第1および第2キャビティ部であって、それぞれのキャビティ部はそれぞれの吸込口および吐出口を含む、第1および第2キャビティ部と、第1キャビティ部と第2キャビティ部との間に延在する接続チューブと、インペラであって、第1キャビティ部内で第1ロータ上に搭載される第1セットのベーンと、第2キャビティ部内で第2ロータ上に搭載される第2セットのベーンと、第1および第2ロータに接続するシャフトであって、接続チューブを通して延在する、シャフトと、を含むインペラと、インペラを回転させるためのドライブと、インペラの軸方向位置を制御するための少なくとも1つの軸受コイルを含む磁気軸受と、を含み、ドライブおよび磁気軸受の少なくとも一方は、少なくとも部分的に第1キャビティ部と第2キャビティ部との間で、接続チューブの外側に搭載される心臓ポンプ。