An experiment demonstrating a link between classical single-flux quantum digital logic and a superconducting quantum circuit is reported. We implement coupling between a moving Josephson vortex (fluxon) and a flux qubit by reading out of a state of the flux qubit through a frequency shift of the fluxon oscillations in an annular Josephson junction. The energy spectrum of the flux qubit is measured using this technique. The implemented hybrid scheme opens an opportunity to readout quantum states of superconducting qubits with the classical fluxon logic circuits.