Introduction

Quantum non-Gaussian (QNG) states of linear harmonic oscillators are essential for quantum science and technology1. They are already known as a prerequisite for universal quantum simulation2,3,4 and computation5,6, quantum error correction7,8 and quantum metrology advantage9,10. The truly quantum non-Gaussianity originating from genuinely quantum forms of nonlinear operations has to be distinguished from incoherent statistical mixtures of Gaussian states provided by nonlinearities in semiclassical regimes. Subsequently, QNG phenomena are crucial for many fundamental quantum information protocols since they are a resource for wide applications in quantum sensing11 and advancement of quantum information processing12,13. As a useful tool for the pioneering experiments, it has been proposed to exploit the Fock basis statistics for evaluation of the QNG states14,15. The main idea is that Gaussian states have limits to be restricted in a finite Fock-basis subspace. This also applies to states made by Gaussian operations on Fock states, creating a hierarchy of multiphoton quantum non-Gaussianity16. The methods of evaluation of quantum non-Gaussianity have been verified in various optical, atomic and solid-state experiments16,17,18,19,20,21,22,23,24 to detect QNG states with positive Wigner functions affected by noise and loss.

Micro- or nano-sized particles with mass in the range of femtograms to picograms trapped in optical tweezers–tightly focused laser beams that can trap and manipulate particles through radiation pressure and gradient forces– form a promising platform for investigations of light-matter interaction25,26,27. The dipole force experienced by the particle is proportional to the gradient of the trapping field intensity. Therefore, the spatial intensity profile of the tweezer serves as an effective variable potential for mechanical motion, providing a harmonic trap with a frequency in the range between tens and hundreds of kHz. No mechanical contact with the environment, excellent control over the frequency and position of the trapping laser, and free rotation of the levitated particles have opened the way to impressive experimental progress and applications28. Studying macroscopic quantum mechanics requires cooling trapped NPs close to their ground states28,29,30 which is possible using techniques of cavity cooling31,32,33,34 or feedback35,36,37. These trapped NPs are suitable platforms for ultrasensitive detection of displacement, force, acceleration, and torque25,38,39,40,41,42,43,44,45, and fundamental physics tests46,47,48,49,50,51.

Here, we propose a protocol to create QNG Fock states of mechanical center-of-mass motion of a levitated nanoparticle (NP) in the experimentally feasible regime using discrete nonlinear detectors. While the general approach of single-phonon addition/subtraction has been established in prior studies, its direct application to levitodynamics with its peculiarities with a view toward quantum non-Gaussianity has remained elusive. Our work aims to bridge this gap. Specifically, we contribute to the theoretical and practical understanding of QNG states in levitated systems through several novel aspects: We develop a theoretical framework to analyze QNG state preparation in the pulsed regime and extend the model beyond the rotating wave approximation. We adapt existing methods to generalize quantum non-Gaussianity to multi-phonon states, addressing unique challenges in optical levitation. We extend the theoretical framework to enable QNG state generation in cavityless levitated systems, a previously unexplored regime. Finally, we propose a position sensor leveraging the non-Gaussian properties of mechanical states, demonstrating their practical applicability for sensing phase-randomized displacements—an application not previously discussed. Collectively, these contributions bridge the gap between established discrete quantum control methods and the tailored requirements of levitated optomechanics, marking a significant advancement in both theoretical and experimental domains. The generated motional mechanical states can be conclusively verified using specific quantum non-Gaussianity criteria of refs. 20,52. Optical readout of the mechanical states53, combined with a loss-tolerant version of the QNG criteria20,52, facilitates direct observation of QNG features using photon-counting detectors, which differs from linear detection methods like homodyne or heterodyne measurement. Our protocol circumvents the need for retrodiction of mechanical QNG states from optical states, allowing for straightforward and reliable verification of QNG features. Our work establishes three pivotal milestones. First, we demonstrate the feasibility of obtaining a QNG state of the mechanical oscillator sufficiently robust against environmental noise to allow its subsequent optical readout despite experimental imperfections, such as initial state impurity and heating. Second, we verify that this non-Gaussianity can be observed directly in the optical output of the optomechanical system, avoiding indirect inference methods. Finally, we confirm the potential use of these states for a major application of levitating particles—quantum sensing of external forces.

Results

Levitated Nanoparticle Protocol

As depicted in Fig. 1a, we propose a scheme to generate and verify QNG mechanical states in a pulsed optomechanical system. The system consists of a levitated NP coupled to an optical cavity. The coupling could be realized via radiation pressure54, however, here we focus on the coherent-scattering-based approach31. The interaction between the motion of the NP and the electromagnetic fields is described by a Hamiltonian \({H}_{{\rm{int}}}=-\frac{1}{2}{\alpha }_{p}{{\bf{E}}}^{2}({x}_{m},t)\) that depends on the polarizability of the NP αp and the electric field E(xm, t) at the center of mass position of the particle xm34. This electric field can be decomposed into contributions from the tweezer field and the cavity field, E = Etw + Ecav. When this decomposition is substituted back into the interaction Hamiltonian, three terms emerge. Two of these terms, \({{\bf{E}}}_{{\rm{tw}}}^{2}\) and \({{\bf{E}}}_{{\rm{cav}}}^{2}\), are proportional to the square of the tweezer field and the square of the cavity field, respectively. The former gives rise to the trapping potential, while the latter corresponds to the radiation pressure optomechanical interaction, which can be neglected or avoided by carefully placing the NP at the node of the standing wave within the cavity. The cross term Etw Ecav describes the coherent scattering of tweezer photons into the cavity field. The cavity field can be expressed as Ecav = Ec(a + a) in terms of the field magnitude Ec that depends on the volume of the cavity mode and the normalized classical electric field of the cavity mode, and the creation (a) and annihilation (a) operators. The total Hamiltonian with = 1 is then given by34

$$H=\Delta {a}^{\dagger }a+\frac{{p}_{m}^{2}}{2m}+\frac{1}{2}m{\omega }_{m}^{2}{x}_{m}^{2}-G(a+{a}^{\dagger }){x}_{m},$$
(1)

In this expression Δ = ωcavωtw is the detuning between the cavity and tweezer frequencies, pm the NP momentum operator, and m its mass. The specific values of the trapping frequency ωm and the coupling rate G in the Hamiltonian depend on the properties of the NP, the tweezer field, and the cavity mode. These properties must be carefully chosen to realize the desired QNG mechanical states in the optomechanical system. In principle, alternative platforms, such as particles levitated in radio-frequency Paul traps55,56,57 or magnetically levitated NPs58 can be used, however, here we focus on the optically levitated NPs as the platform with the most advanced cooling of the center of mass motion reported to date.

Fig. 1: Heralded generation of Quantum non-Gaussian states of motion of a levitated nanoparticle.
figure 1

a Illustration of an optomechanical system with a levitated NP trapped within an optical cavity by an optical tweezer. The motion of the NP is coupled to the cavity field via coherent scattering. b Experimental implementation of single-phonon addition or subtraction with known experimental parameters and technical imperfections. c The protocol and theory model for generating and verifying QNG mechanical states in a pulsed optomechanical system. The system comprises a cooled mechanical oscillator (denoted by annihilation operator b) coupled to an optical cavity mode (denoted by a). The coupling is enabled by pulsed laser light and lasts for a duration τ1 with Hamiltonian H1 (beam splitter or parametric squeezing interaction). Upon a photon detection at the array of APDs 1, the mechanical state is projected onto a non-Gaussian quantum state. The generated mechanical state is then transferred to the optical mode via the beam splitter interaction H2 for a duration τ2 and verified at the array of APDs 2.

Our approach to generating non-Gaussian states involves employing non-Gaussian measurements on the optical field, which is correlated with the mechanical mode. Specifically, photon-counting measurements facilitated by APDs or equivalent detectors can project the mechanical state onto a QNG mechanical state, albeit conditionally. In fact, at the detector, a measurable charge pulse is obtained when a photon hits it. In a linear detector, the resulting current is directly proportional to the incoming photon flux. However, when detectors operate at very low intensities, they use an avalanche process to transform a single ionization event into a detectable pulse. Therefore, it is only possible to distinguish between the vacuum state and the occupied states. The action of these binary on-off detectors is represented by a two-value positive operator-valued measure (POVM)59

$$\Pi_0 (\eta) = \sum_{n=0}^{\infty}(1-\eta)^n |n\rangle\langle n|, \qquad \Pi_1(\eta)=1-\Pi_0(\eta)\,,$$
(2)

where η is the detection efficiency. We consider the electronic noise and dark counts to be negligible for the current detectors. An advantage of the coherent-scattering-based setup for our purpose is that only the inelastically scattered photons populate the cavity mode and can eventually reach the detector. Stray tweezer photons do not get scattered to the cavity and are therefore automatically rejected. This is in contrast with other optomechanical systems, where drive photons have to be carefully filtered out using convoluted optical filters60,61. In the event of a click, the optomechanical state ρAB is projected onto the conditional state of the mechanics:

$${\rho }_{{\rm{B}}}({\tau }_{1})=\frac{{\Pi }_{1}{\rho }_{{\rm{AB}}}({\tau }_{1}){\Pi }_{1}}{{\text{Tr}}_{A}[{\Pi }_{1}{\rho }_{{\rm{AB}}}({\tau }_{1}){\Pi }_{1}]}\,,$$
(3)

where TrA() denotes the trace over the optical mode.

Phonon subtraction/addition protocols involve a weak, pulsed optomechanical interaction followed by photon detection using an APD. For phonon subtraction, a beamsplitter-like interaction

$${H}_{{\rm{BS}}}=-g(a{b}^{\dagger }+b{a}^{\dagger })\,,$$
(4)

with vacuum in the optical input is used, realizable by driving the system on the lower mechanical sideband (Δ = ωm)62. Here we have introduced the mechanical annihilation operator \(b=\sqrt{m{\omega }_{m}/2}\left[{x}_{m}+i{p}_{m}/(m{\omega }_{m})\right]\) and \(g=G/\sqrt{2m{\omega }_{m}}\). Assuming unitary dynamics and weak coupling gτ1 1, the transformation induced by Eq. (4) and subsequent detection of leaking photons generates the output state of the mechanical oscillator as

$${\rho }_{B}({\tau }_{1})=\frac{b{\rho }_{B}(0){b}^{\dagger }}{{\rm{Tr}}[b{\rho }_{B}(0){b}^{\dagger }]}+o(g{\tau }_{1}).$$
(5)

The probability ps to obtain this state, that is the heralding probability, increases with the effective gain of the optomechanical interaction (ps gτ1). However, increasing this probability also increases the contribution of multiphoton components in the heralded state, and thus decreases the accuracy of the phonon subtraction. Therefore, a weak coupling (gτ1 1) is advantageous to realize an approximate phonon subtraction; additionally, the weak coupling reduces heating by photon-recoil.

In contrast, phonon addition is achieved through a two-mode squeezing interaction,

$${H}_{{\rm{PA}}}=-g({a}^{\dagger }{b}^{\dagger }+ab)\,,$$
(6)

implementable by driving on the upper mechanical sideband (Δ = − ωm)62. The transformation induced by Eq. (6) and the subsequent photon detection puts the mechanical mode in a single-phonon-added state described by

$${\rho }_{B}({\tau }_{1})=\frac{{b}^{\dagger }{\rho }_{B}(0)b}{{\rm{Tr}}[b{\rho }_{B}(0){b}^{\dagger }]}+o(g{\tau }_{1}).$$
(7)

Although conceptually simple, practical realizations face challenges such as thermal decoherence of the mechanical mode and optical losses, as schematically shown in Fig. 1b. Careful parameter tuning is necessary to mitigate these effects. Eq. (4) and (6) are derived from Eq. (1) using rotating-wave approximation that requires the resolved sideband regime where the cavity lifetime is much larger than the mechanical oscillation period (\({\kappa }^{-1}\,\gg\,{\omega }_{m}^{-1}\)). Furthermore, it is beneficial to maintain weak coupling g κ and a pulse duration that exceeds the lifetime of the cavity, i.e., τ κ−1. In this regime, the cavity mode remains approximately unpopulated. The photons used for heralding are instead scattered directly to the detector. Therefore, the Hamiltonians ((6),(4)) accurately describe the interaction between the mechanical oscillator and the light at the detector. Incoherent phonon exchange of the mechanical oscillator with its environment including recoil heating (at the rate \({\Gamma }_{m}\approx {\gamma }_{m}\bar{n}\), where γm is the linewidth and \(\bar{n}\) is the mean occupation of the environment) should be negligible. Practically it should be slower than the coherent interaction rate g and other rates within the system.

The initial quantum state of the NP ρB(0) that we consider here is either a thermal state \({\rho }_{{\rm{th}}}({n}_{0})={\sum }_{m}{n}_{0}^{m}/{(1+{n}_{0})}^{m+1}| m\left.\right\rangle \left\langle \right.m|\) with mean occupation n0, or a squeezed thermal state S(r, ϕ)ρth(n0)S(r, ϕ) where \(S(r,\phi )=\exp [({\zeta }^{* }{a}^{2}-\zeta {({a}^{\dagger })}^{2})/2]\) is the squeeze operator parametrized by the squeezing parameter \(\zeta =r\exp (i\phi )\). In recent literature occupations as low as n0 < 0.5 have been achieved33,63. Squeezing of such a thermal state is possible by manipulation with the trapping potential64,65,66 with 4 dB of squeezing shown in ref. 66.

To verify the non-Gaussianity of the heralded mechanical state, a red-detuned probe pulse is sent into the cavity. The pulse implements a beamsplitter-like interaction akin to Eq. (4) and swaps the mechanical state to the field leaking from the cavity. By measuring the probe photon statistics, we can reconstruct the mechanical oscillator’s phonon statistics and verify that it exhibits quantum non-Gaussianity. Non-Gaussianity of the mechanical state can be verified by applying a hierarchy of absolute criteria from ref. 20. It accidentally coincides with the modified stellar approach towards photon detection67. We define the genuine n-phonon quantum non-Gaussianity of the mechanical oscillator as thephononic states that reject all the mixtures of the states of the form

$$\vert {\Psi }_{n-1}\rangle =D(\alpha )S(\xi )\mathop{\sum }\limits_{k=0}^{n-1}{c}_{k}\vert k\rangle$$
(8)

where D(α) and S(ξ) are the displacement and the squeezing operators. The criterion relies on surpassing the thresholds

$${Q}_{n}^{G}=\mathop{\max }\limits_{\vert {\Psi }_{n-1}\rangle }\left\{{\vert \langle n| {\Psi }_{n-1}\rangle \vert }^{2}\right\}$$
(9)

i.e., genuine n-phonon quantum non-Gaussianity manifests itself when \({Q}_{n} > {Q}_{n}^{G}\). In Table 1, we present the global maximum of Qn over all pure Gaussian states. Our approach provides a pathway for creating more complex nonclassical states of macroscopic mechanical elements using pulsed quantum interactions and measurements.

Table 1 Maximal probabilities for the genuine n-phonon quantum non-Gaussianity

Experimental Considerations

While our theoretical framework for phonon addition/subtraction in pulsed optomechanics offers promising insights, translating these concepts to experimental implementation requires careful consideration of practical challenges. In this section, we assess the feasibility of realizing our proposed scheme using state-of-the-art levitated NP systems. We identify key experimental parameters, potential technical obstacles, and strategies to overcome them, demonstrating that our approach, though demanding, lies within reach of current experimental capabilities with appropriate modifications and technical considerations. Although optical trapping implementation differs significantly between cavity-based and free-space systems, preventing direct performance comparisons, we can evaluate feasibility using parameters from recent experimental demonstrations. Tables 2 and 3 list characteristic parameters from state-of-the-art experiments in cavity-based33 and free-space68,69 optical levitation systems, respectively.

Table 2 Cavity-based system parameters33
Table 3 Free-space system parameters68,69

In the cavity-based implementation, the NP is initially cooled close to its ground state using well-established techniques such as sideband cooling inside a high-finesse cavity33. During this cooling phase, photons scattered toward the detector are discarded, ensuring that the NP is prepared in a low-occupancy thermal state (n0 1). At time t = 0, the phonon addition/subtraction protocol starts, and the setup is switched to monitor the tweezer photons scattered towards the detector. Phonon subtraction is performed without altering the tweezer detuning—thus maintaining the cooling configuration—whereas phonon addition is realized by applying a pulsed drive on the upper cavity sideband. This process requires a rapid change in the tweezer detuning, which is feasible using electro-optical modulators and is modeled as an instantaneous switch in our theoretical description. Importantly, the coherent-scattering mechanism inherent to the cavity-based approach effectively suppresses elastically scattered tweezer photons from entering the cavity mode, thereby reducing false heralding events. Issues such as the finite spatial extent of the NP, its three-dimensional motion in the tweezer trap, and the finite cavity linewidth can lead to a non-negligible contribution of stray (elastically scattered) photons, which may cause false heralding. An order-of-magnitude estimate, for instance, based on the ratio g/(Γ × Finesse), helps in quantifying the level of filtering required to keep stray light within acceptable limits. We have explicitly included the counter-rotating terms in the supplementary material and find negligible deviations from the rotating-wave approximation for our parameters (\(g \ll {\omega _m}\)), confirming that sideband filtering is not a limiting factor.

In the free-space configuration, the NP is similarly pre-cooled to near its ground state using techniques such as feedback cooling70,71. Unlike the cavity-based system, the free-space setup does not benefit from the inherent rejection of elastically scattered tweezer photons. Instead, it exploits the full quantum nondemolition (QND) interaction to accommodate both elastic and inelastic scattering processes. Here, the pulsed interaction is implemented by selecting a specific temporal window during which scattered photons are treated as heralding events, without the need for rapid detuning changes. The dynamics—including decoherence effects such as recoil heating—are modeled using QLE, with numerical integration employed to accurately capture the system behavior when simplifying approximations (such as the RWA) are not justified.

We should mention that the method avoids the need for a strong coupling regime. Although, the mechanical frequencies of the levitated NPs motion are indeed low. Nevertheless, quantum information protocols are being actively developed for this platform experimentally and theoretically72,73. Moreover, imperfections such as detector inefficiency or optical losses in transmission mainly reduce the photon heralding rate, thereby affecting the phonon addition/subtraction success rate. However, the heralded mechanical state remains unaffected by optical loss. Mitigation strategies include optimizing pulse durations and interaction strengths, implementing advanced ground-state cooling techniques, and employing high-efficiency photon detectors. These measures collectively ensure that decoherence and recoil heating are sufficiently minimized, thereby enhancing the fidelity of the heralded non-Gaussian mechanical states.

Quantum non-Gaussian mechanical states

Figure 2a shows the multiphonon probabilities Qn = 〈nρBn〉 for the conditional mechanical state ρB, versus the initial thermal occupation, for the single-phonon subtraction (red-detuned laser pulse), starting from a squeezed thermal state. It is known74 that the subtraction of photons from a thermal state produces a classical output, therefore, for phonon-subtraction, we consider a squeezed thermal initial state. In general, subtracting a phonon from a thermal state doubles the occupation of the state75, however, for low initial occupations, this effect is insufficient to produce non-Gaussian features, let alone the QNG ones. Starting from a squeezed state \({\vert \psi (0)\rangle }_{m}\approx {\sum }_{m}{q}_{2m}(r)\vert 2m\rangle\) with \({q}_{2m}(r)={\left(-1\right)}^{m}\sqrt{(2m)!}{\tanh }^{m}r/[{2}^{2m}{(m!)}^{2}\sqrt{\cosh r}]\), a red-detuned pulse can generate a non-Gaussian state since q2(r) ≠ 0. Therefore, a QNG state can be achieved with a red-detuned pulse assisted by initial mechanical squeezing, where the single phonon probability Q1 is greater than the maximum probability for Gaussian states (see Table 1). Due to the squeezed nature of the state, a witness constructed from the Fock state probabilities is intuitively expected to be suboptimal. The performance of our witness can be significantly enhanced by extracting the highly nonclassical core of the state via the anti-squeezing operator, \({\rho }_{B}^{S}={S}^{\dagger }(r){\rho }_{B}S(r)\)18,76. We should mention that squeezing is a Gaussian operation, meaning it transforms mixtures of Gaussian states into other mixtures of Gaussian states. Consequently, if \({\rho }_{B}^{S}\) exhibits quantum non-Gaussianity, then the original state ρB must also be QNG in nature. Therefore, in dealing with the squeezed states, we need to calculate the diagonal density matrix elements in the basis of squeezed Fock states, that is, \({Q}_{{n}_{1}}\to {Q}_{{n}_{1}}=\langle {n}_{1}| {S}^{\dagger }{\tilde{\rho }}_{B}S| {n}_{1}\rangle\). The effect of squeezing on different phonon probabilities is presented in the inset of Fig.2a. We can see increasing the squeezing parameter up to a certain value allows us to reach single phonon non-Gaussianity. After this value, higher Fock states will be populated. The squeezing phase does not affect the non-Gaussianity of the generated state and only causes a rotation of the corresponding Wigner function in the phase space. Comparing dashed and solid lines in all these Figures we find that the less the heating rate the higher the quantum non-Gaussianity.

Fig. 2: Quantum non-Gaussianity after heralding in a cavity.
figure 2

Single-phonon-subtracted squeezed thermal mechanical state (a) and single-phonon-added thermal mechanical state (b). The probability of finding n phonons in the mechanical mode conditioned on detecting a photon at the output versus initial mechanical occupation with initial squeezing with (r, ϕ0) = (1, π/2) and (inset) versus squeezing and fixed value of initial mechanical occupation n0 = 0.1. Dotted, dashed, and solid lines correspond to a fixed heating rate \(\gamma \bar{n}=0\), \(\gamma \bar{n}=0.01\kappa\) and \(\gamma \bar{n}=0.06\kappa\), respectively. The initial state of the mechanics is a squeezed thermal state with mean phonon number n0 and squeezing parameters (r, ϕ0) (Eq. (25a)) in (a) and a thermal state with mean occupation n0 in (b). Other parameters are g/κ = 0.02 and κτ = 2. The dashed gray line is the first-order absolute quantum non-Gaussianity threshold \({Q}_{1}^{G}\approx 0.48\) (Eq. (9)). States marked by the dots are further investigated in Figs. 6 and 5.

Figure 2b corresponds to the single phonon addition (performed via a pulse with blue detuning). A blue-detuned pulse adds a phonon to the state and leaves the system in the conditional state \({\vert \psi (\tau )\rangle }_{m}\approx \vert 1\rangle\) (i.e., Q1 ≈ 1). The non-Gaussianity decreases with increasing thermal phonons. However, for a blue-detuned pulse with squeezing, the quantum non-Gaussianity is reduced and less resilient to the thermal phonons. We note that the multi-phonon probabilities do not imply higher-order non-Gaussianity, as they are all smaller than the maximal probabilities for Gaussian states.

We next investigate conditionally generated non-Gaussian phonon states and explore how the QND-type interaction necessitates a meticulously precooled mechanical state to approximate phonon addition in a cavityless system. As shown in Fig. 3, the optomechanical interaction in free space leads to not exactly a phonon addition, unless the mechanical mode is precooled close to the ground state. We can see that the scheme is quite robust to the added thermal noise. Given the initial cooling to a sufficiently pure state (n0 1), the heralding approaches a single-phonon addition. As the occupation increases, the first-order quantum non-Gaussianity of the state reduces. Figure 3b illustrates the probabilities as a function of pulse duration, revealing a damped oscillatory behavior and highlighting the necessity of employing short pulses to generate a non-Gaussian state.

Fig. 3: Quantum non-Gaussianity after heralding without a cavity.
figure 3

The probability of finding n phonons in the mechanical mode conditioning on detecting photon at the output (a) versus initial mechanical occupation with ωτ = 1 and Γ/ωm = 0.008269. b Phonon probabilities as a function of the pulse duration assuming n0 = 0.1. Dashed, and solid lines correspond to a fixed heating rate \(\gamma \bar{n}=1{0}^{-1}{H}_{0}\) and \(\gamma \bar{n}={H}_{0}\) respectively, where H0 = 0.054ωm. The dashed gray line is the first-order absolute quantum non-Gaussianity threshold \({Q}_{1}^{G}\approx 0.48\) (Eq. (9)). States marked by the dots are further investigated in Figs. 6 and 5.

As mentioned, the success probabilities of heralding are proportional to the effective strength of the optomechanical interaction ps gτ1, and thus, to a certain extent, can be controlled. Increasing ps will also increase the repetition rate of the protocol, at the cost of additional multiphonon contributions of the heralded state. Here, we chose these probabilities to be of the order 10−3, comparable with optical experiments on photon subtraction77.

As shown schematically in Fig. 4a, after detecting the photon at the output, we can apply multiple pulses to obtain higher-order quantum non-Gaussianity. Our generated mechanical state after each pulse is not a Gaussian state, however, we can write it in terms of Gaussian states according to

$${\rho }_{B}({\tau }_{1})=\mathop{\sum }\limits_{i=1}^{N}{f}_{i}{\rho }_{G}^{i}({\tau }_{1})\,,$$
(10)

where \({\rho }_{G}^{i}(\tau )\) is a thermal (or squeezed thermal) state with covariance matrix Vi and fis are weighting numbers determined numerically. We should note that Eq. (10) applies to the conditional measurement scheme described here, and may not be generalizable to all possible non-Gaussian states (e.g., states with non-zero first quadrature moments). This representation is a direct consequence of the binary nature of the on-off detector and the fact that one of these outcomes (no click) corresponds to a Gaussian operation while the other (click) gives us our desired non-Gaussian state. This decomposition allows us to write the Wigner function of the system after interaction with the multiple pulses as (a generalized version of Eq. (28))

$$W({\alpha }_{1},{\alpha }_{2};{\rho }_{AB})=\displaystyle\frac{4}{{\pi }^{2}}\mathop{\sum }\limits_{i=1}^{N}\displaystyle\frac{{f}_{i}}{\sqrt{{\det {\bf{V}}}_{i}}}{e}^{-\displaystyle\frac{1}{2}{{\bf{u}}}^{\dagger }{{\bf{V}}}_{i}^{-1}{\bf{u}}},$$
(11)

which means that each state \({\rho }_{G}^{i}({\tau }_{1})\) undergoes a linear map. We can finally calculate the Wigner function of the mechanical mode after N pulse according to

$${W}_{B}({\tau }_{1})=\mathop{\sum }\limits_{i=1}^{N}{f}_{i}{W}_{B,i}({\tau }_{1})\,,$$
(12)

In Fig. 4, we plot multiphonon probabilities after applying second and third pulse versus initial mechanical thermal phonons for two values of heating rate. One can easily see that it is possible to achieve higher-order non-Gaussianity if the mechanical mode is cooled close to the ground state. Increasing both the initial thermal occupation and the heating rate reduces the effectiveness of our scheme. Since the squeezing of the initial mechanical state does not improve the non-Gaussianity, it would be enough to consider the initial thermal state without squeezing. An alternative approach to the generation of multiphonon-added states, instead of using multiple pulses each individually implementing a single phonon addition, could be heralding upon multiple photon detection at the optical output. Indeed, in such a case, given an optical vacuum at the input, each scattered photon corresponds to a single-phonon addition. Unfortunately, the scattering of multiple photons is an event with a proportionally lower probability than scattering a single photon. Consequently, to realistically evaluate the outcomes of such events it might be necessary to take into account dark counts of the detectors and other detrimental factors.

Fig. 4: Multiple phonon addition.
figure 4

a Illustration of the proposed method for generating higher-order QNG mechanical states. The probability of finding n phonons in the mechanical mode conditioning on detecting photons at the output versus optomechanical thermal occupation for pulses with blue detuning b two pulses j = 2 and (c) three pulses j = 3. Here r = 0, g/κ = 0.02 and κτ = 2. The mechanical mode is initially in equilibrium with the environment \(\bar{n}\). Dotted, dashed and solid lines correspond to a fixed heating rate \(\gamma \bar{n}=0\), \(\gamma \bar{n}=0.01\kappa\) and \(\gamma \bar{n}=0.06\kappa\). The dotted black line is the jth-order non-Gaussianity threshold.

An essential property of QNG states of mechanical motion is their QNG depth, which quantifies their resilience against relevant imperfections. Specifically, the QNG depth measures the thermal excitation required to erase quantum non-Gaussianity, as described by Eq. (9). For each prepared mechanical state, this metric serves two purposes: (i) assessing the quality of the generated QNG state and (ii) evaluating its robustness against thermalization due to interactions with a thermal bath. For mechanical oscillators, such thermalization is a dominant and well-characterized process thatleads to a gradual loss of QNG features. This process is governed by three key parameters: the damping rate γ, the thermal occupation number of the environment \(\bar{n}\), and the interaction duration t. Accordingly, we define the parameter \({d}_{{\rm{NG}}}=\gamma \bar{n}t\) as a measure of the QNG depth. Physically, dNG equals the number of thermal quanta absorbed by the NP before its QNG properties vanish. The QNG depth is computed numerically from the Lindblad equation (see methods), which describes the heating process induced by the interaction with a thermal bath. This formulation aligns with the standard framework of quantum open systems, reflecting the expected energy transfer from the bath to the NP. Specifically, dNG corresponds to the average number of thermal quanta exchanged with the bath during the interaction time t. The loss of quantum non-Gaussianity is directly associated with the increase in the thermal phonons of mechanical state, which gradually diminishes its distinct QNG characteristics. By defining dNG in this manner, we can quantify the amount of heating required for the transition from the QNG regime to a Gaussian or classical-like regime. Experimentally, the critical value of dNG can be determined by monitoring the state dynamics during a controlled thermalization and identifying the threshold at which the QNG witness is no longer satisfied. This interpretation provides a robust and physically meaningful metric for characterizing the system. Figure 5 illustrates the dependence of the QNG depth on the initial mechanical occupation for various mechanical states in Figs. 2 and 3. As n0 increases, the system’s ability to sustain non-Gaussian characteristics diminishes, illustrating the enhanced thermalization effects at higher n0, which lead to the transition to Gaussian states. Notably, the QNG depth of a perfect single-phonon state \({\rho }_{B}=\left\vert 1\right\rangle \left\langle 1\right\vert\) is dNG = 0.324, indicated by a dashed gray line. These results highlight the sensitivity of QNG depth to thermal fluctuations and emphasize the necessity of precise control over initial mechanical states to preserve the non-Gaussian features of the heralded states.

Fig. 5: Non-Gaussian depth as a function of initial thermal occupation of the mechanical oscillator n0.
figure 5

a Phonon-added (blue lines) and subtracted (red lines) and b cavityless system. Each curve corresponds to a different mechanical state shown with markers in Figs. 2 and 3. The upper bound corresponds to a perfect single phonon state shown by the dashed gray line.

Furthermore, in the supplementary material, we provide a detailed analysis of the measurement and verification scheme for the generated QNG mechanical states. This includes the readout process using a second optical pulse with beam-splitter Hamiltonian of Eq. (4), the calculation of multiphoton probabilities of the optical pulse state, and the impact of mechanical heating and detection inefficiencies on the transfer of quantum non-Gaussianity from the mechanical mode to the optical one. We also present the results of our numerical simulations, highlighting the challenges and optimization strategies for achieving high non-Gaussianity in the state transfer process.

By generating QNG states, we can enhance the system’s sensitivity to small displacements. To illustrate this, we consider the suitability of the heralded mechanical state for detecting a phase-randomized displacement (PRD)78. The sensing capabilities are evaluated via the quantum Fisher information F(Nc) of the probe state which is computed assuming detection capable of resolving a few lowest Fock states. The POVM of this detection includes projectors on these Fock states \(\{{\Pi }_{k}\equiv | k\left.\right\rangle \left\langle \right.k| ,\,k=0,\ldots ,N\}\), and \(1-\mathop{\sum }\nolimits_{k = 0}^{N}{\Pi }_{k}\). When N = 0, the POVM describes a single on-off detector with unity efficiency. The minimal mean-square error in estimating Nc by any unbiased estimator is bounded by the quantum Cramér-Rao inequality, Δ2Nc ≥ 1/(MF(Nc)) where M represents the number of probe state copies used in the estimation. The complete theoretical framework with necessary details is presented in Section IV. In Fig. 6, we investigate the estimation of phase-randomized displacement using the quantum states resulting from approximate phonon subtraction (a), addition (b), and the states heralded in a free-space setup (c). Our results demonstrate that the approximate phonon subtraction actually decreases the sensing capability of the state. In contrast, approximate addition, either by a cavity or by free-space heralding, provides superior performance compared to the initial thermal Gaussian state even if the heralded states do not surpass the absolute non-Gaussianity threshold given by Eq. (9).

Fig. 6: Estimation error of phase-randomized force using the heralded mechanical state.
figure 6

a Photon-subtracted squeezed thermal state, b phonon-added thermal state and c cavityless optomechanics for the state marked in Figs. 2 and 3. Different colors correspond to detection capable of resolving different numbers of Fock states (see text): N = 2 for red, N = 3 for blue, and N = 4 for green, assuming M = 500 copies of the probe state. Solid, dashed, and dotted lines correspond to the same heating rates as in Figs. 2 and 3. The labeled gray lines show the estimation error when using the vacuum, single phonon, and a thermal state with mean occupation n0 = 0.1 as the probe state.

Note that the sensitivity provided by ground-state probes (gray dashed lines labeled \(| 0\left.\right\rangle\)) correspond to the best sensitivity achievable with classical states, i.e., standard quantum limit (SQL). In contrast, highly quantum non-Gaussian Fock states are proven (see79) to be optimal for sensing displacements with unknown phase. These two limits, thus, provide natural benchmarks for the heralded mechanical states.

One can see from Fig. 6 that lower mechanical noise and consequently higher purity of the heralded mechanical state increases its sensitivity to phase-randomized displacement. Moreover, for small values of Nc, the estimation error exhibits an approximately linear relationship with Nc. Importantly, to get almost all the advantages of the heralded state, it is sufficient to resolve up to N = 2 Fock states. Increasing the resolution to N = 3 Fock states only marginally reduces the estimation error, and further increase of N virtually does not reduce it anymore.

Discussion

We have proposed and investigated a protocol capable of producing approximate mechanical Fock states of the center of mass motion of levitated NPs using pulsed optomechanical interactions and nonlinear photon detection, and specified its applicability for force sensing and storage of QNG features. This method can be applied to a multitude of other opto- and electro-mechanical platforms62 and allows comparison of them for the necessary QNG experiments. We have also characterized the robustness of the generated non-Gaussian state to various sources of noise and decoherence, such as thermal noise, impure initial states, and inefficient photon detection. In a cavity-based setup, the beamsplitter-like coupling of Eq. (4) enables efficient verification using established optical measurement techniques53, photon counting detectors, and specific non-Gaussianity criteria20. In contrast, verification is more challenging with free-space-based systems since they do not have this direct state transfer mechanism. However, the methodology15 for developing the criteria of quantum non-Gaussianity can be used to derive the requirements with any known state transfer and detection mechanism.

Here, we addressed the simplest case of adding and subtracting phonons to the thermal mechanical states of levitated NPs trapped in harmonic potentials. In principle, NPs can enjoy more complicated motional potentials such as cubic, double-well, or even more exotic ones72,80,81,82,83,84. Evolution in nonlinear potentials grants access to motional nonlinearity in the sense of continuous-variable distributions of quadratures. The combination of such continuous-variable nonlinearities with discrete operations at a single-phonon level holds promise for a more experimentally versatile approach to quantum state engineering. Furthermore, levitated NPs have the capability of freely falling when the trap is switched off, which grants access to unitary Gaussian squeezing. This operation is known to enhance higher-order nonlinearities72, and its interplay with the phonon-added and -subtracted states is yet to be studied. We have considered sequences of multiple heraldings capable of engineering approximate multiphonon-added and -subtracted states. The main factor limiting the accuracy of the heralding is the heating by photon recoil85. Reduction of this heating by adjusting the trapping setup86 can lead the way towards more elaborate sequences of phonon additions and subtractions. Furthermore, ultimately, one can think of sequences of alternating periods of free fall, evolutions in quadratic and nonlinear potentials, and heralding by on-off detection of the light scattered off the NP.

Our analysis shows that single-phonon control of quantum motion is within reach for levitated systems both inside an optical cavity33 and in free space68,69. Our work lays the foundation for future studies into the generation, manipulation, and characterization of QNG mechanical states in levitating optomechanics, opening up new directions for fundamental research and technological innovation.

Methods

Cavity-based pulsed dynamics

We use the standard machinery of quantum Langevin equations (QLE) to describe the dynamics of the levitated NP in a tweezer. QLE take into account decoherence of the NP’s motion caused by various sources, including recoil heating due to the random scattering of tweezer photons. By applying the RWA, we selectively isolate the (anti-)Stokes scattering processes. Under a constant optomechanical coupling (i.e., a flat-top driving power profile), the QLE reduce to ordinary differential equations with fluctuating forces, which can be integrated analytically to yield effective input-output relations. In regimes where the RWA is not applicable, we solve the full QLE numerically (see Fig. S1 in the Supplementary Materials). This procedure ultimately yields the heralded conditional mechanical state as a function of system parameters (e.g., heralding pulse duration, interaction strength, and heating rates). These parameters are then optimized—primarily the pulse duration and interaction strength—to maximize the quantum non-Gaussianity of the heralded state, with the heating rates chosen to reflect those observed in or accessible to current experiments. The dynamical response of the system to external perturbations and noise is encoded in the QLE, which we cast in a compact matrix form. Bydefining the vector of fields r = [b, a, b, a], its corresponding vector of noises \({{\bf{r}}}_{{\rm{in}}}=[{b}_{{\rm{in}}}^{\dagger },{a}_{{\rm{in}}}^{\dagger },{b}_{{\rm{in}}},{a}_{{\rm{in}}}]\), the drift matrix D± (where the plus and minus signs correspond to blue and red detunings, respectively), and the diagonal matrix \({\bf{N}}=\,\text{diag}\,[\sqrt{2\gamma },\sqrt{2\kappa },\sqrt{2\gamma },\sqrt{2\kappa }]\), we can express the equations of motion in a compact form:

$$\frac{d{\bf{r}}}{dt}={{\bf{D}}}^{\pm }{\bf{r}}+{\bf{N}}{{\bf{r}}}_{{\rm{in}}},$$
(13)

The drift matrices for red and blue detuning are respectively given by

$${{\bf{D}}}^{-}=\left[\begin{array}{cccc}-\gamma &ig&0&0\\ ig&-\kappa &0&0\\ 0&0&-\gamma &-ig\\ 0&0&-ig&-\kappa \end{array}\right],\,{{\bf{D}}}^{+}=\left[\begin{array}{cccc}-\gamma &0&0&ig\\ 0&-\kappa &ig&0\\ 0&-ig&-\gamma &0\\ -ig&0&0&-\kappa \end{array}\right].$$
(14)

Here κ and γ are the cavity and mechanical damping rates, respectively. The input noise operators satisfy the following non-zero correlators:

$$\left\langle {a}_{{\rm{in}}}(t){a}_{{\rm{in}}}^{\dagger }({t}^{{\prime} })\right\rangle =\delta (t-{t}^{{\prime} }),$$
(15a)
$$\left\langle {b}_{{\rm{in}}}(t){b}_{{\rm{in}}}^{\dagger }({t}^{{\prime} })\right\rangle =\left(\bar{n}+1\right)\delta (t-{t}^{{\prime} }),$$
(15b)
$$\left\langle {b}_{{\rm{in}}}^{\dagger }(t){b}_{{\rm{in}}}({t}^{{\prime} })\right\rangle =\bar{n}\delta (t-{t}^{{\prime} }),$$
(15c)

where \(\bar{n}\) is the mean phonon number of the thermal mechanical environment. The formal solution of Eq. (13) is given by

$${\bf{r}}(t)={{\bf{M}}}^{\pm }(t){\bf{r}}(0)+\mathop{\int}\limits_{0}^{t}ds{{\bf{M}}}^{\pm }(t-s){\bf{N}}{{\bf{r}}}_{{\rm{in}}}(s)$$
(16)

with \({{\bf{M}}}^{\pm }(t)=\exp ({{\bf{D}}}^{\pm }t)\). The analytical expressions for the elements of matrix M±(t) are given in the Supplemental Material. Moreover, the standard input-output theory \({a}_{{\rm{out}}}(t)=\sqrt{2\kappa }a(t)-{a}_{{\rm{in}}}(t)\) relates the cavity field to the field coming out of the cavity.

We then define the input and output optical temporal modes87

$${{\mathcal{A}}}_{{\rm{in}},{\rm{out}}}^{\pm }(\tau )=\mathop{\displaystyle\int}\limits_{0}^{\tau }ds{f}_{{\rm{in}},{\rm{out}}}^{\pm }(s){a}_{{\rm{in}},{\rm{out}}}(s)\,,$$
(17)

with

$${f}_{{\rm{in}}}^{\pm }(s)=\sqrt{\displaystyle\frac{2\kappa }{{{\mathcal{G}}}^{\pm }-1}}\displaystyle\frac{g{e}^{-\displaystyle\frac{1}{2}(\gamma +\kappa )(\tau -s)}\sinh {G}^{\pm }(\tau -s)}{{G}^{\pm }}\,.$$
(18)
$${f}_{{\rm{out}}}^{\pm }(s)=\sqrt{\displaystyle\frac{2\kappa }{{{\mathcal{G}}}^{\pm }-1}}\displaystyle\frac{g{e}^{-\displaystyle\frac{1}{2}(\gamma +\kappa )s}\sinh {G}^{\pm }s}{{G}^{\pm }}\,,$$
(19)

where

$${G}^{\pm}=\sqrt{\pm g^2 + \frac{(\kappa - \gamma)^2}{4}}$$

and the optomechanical amplification gain\({{\mathcal{G}}}^{\pm }\)

$${{\mathcal{G}}}^{\pm }=1+2\kappa \mathop{\displaystyle\int}\limits_{0}^{\tau }ds{\left[\displaystyle\frac{1}{{G}^{\pm }}g{e}^{-\displaystyle\frac{1}{2}(\gamma +\kappa )s}\sinh {G}^{\pm }s\right]}^{2}\,.$$
(20)

Cavityless heralding of levitated phonons

The Heisenberg-Langevin equations of motion are then given by69

$$\dot{x}={\omega }_{m}p\,,$$
(21)
$$\dot{p}=-{\omega }_{m}x-\gamma p+\xi (t)+\sqrt{4\Gamma }{X}_{{\rm{in}}}(t)\,,$$
(22)

where the term ξ(t) is the effective thermal force with correlations \(\langle \xi (t)\xi ({t}^{{\prime} })\rangle =2\gamma (\overline{n+1/2})\delta (t-{t}^{{\prime} })\). The NP’s motion also influences the quadratures of the interacting modes. We derive the resulting output quadratures using the input-output relation. This establishes the input-output relationship for the optical mode that has a temporally rectangular shape \({f}_{{\rm{in,out}}}=1/\sqrt{\tau }\) as

$${{\mathcal{X}}}_{{\rm{out}}}(\tau )={{\mathcal{X}}}_{{\rm{in}}}(\tau )$$
(23)
$${{\mathcal{Y}}}_{{\rm{out}}}(\tau )={{\mathcal{Y}}}_{{\rm{in}}}(\tau )+\sqrt{4\Gamma /\tau }\mathop{\int}\nolimits_{0}^{\tau }ds\,x(s)$$
(24)

Conditional mechanical state based on photon detection

We consider the initial mechanical mode to be in a squeezed thermal state with the following correlations

$$\langle b(0){b}^{\dagger }(0)\rangle =\left({n}_{0}\cosh (2r)+{\cosh }^{2}r\right),$$
(25a)
$$\langle {b}^{\dagger }(0)b(0)\rangle =\left({n}_{0}\cosh (2r)+{\sinh }^{2}r\right),$$
(25b)
$$\langle b(0)b(0)\rangle =-\left({n}_{0}+1/2\right){e}^{i{\phi }_{0}}\sinh (2r),$$
(25c)

where n0 is the mean phonon number of the mechanical thermal state, r is the squeeze parameter and ϕ0 is the reference phase for the squeezed mechanical state. This mechanical squeezing can be generated through the dynamical instability reached in the far red-detuned and ultrastrong coupling regime in levitated NPs coupled to a microcavity via coherent scattering88 or optically levitated nanosphere by fast switching between two trapping frequencies65,89. The cavity mode is initially in a vacuum state. Mean phonon number of the NP can be reduced n0 < 1 using active feedback35,36,90 or coherent scattering31,32,33,34. Furthermore, strong coupling between the NP and cavity is essential to produce quantum states. In these cooling schemes, the NP’s damping rate is increased while its average phonon occupation number is reduced to the ground state leaving the mechanical mode in a thermal state with low occupation. In addition to the optically induced damping rate, heating from surrounding air molecules and the position fluctuation of the optical tweezer are the limitations of achieving efficient 3D cooling34. Specifically, we use parameters similar to recent work demonstrating ground state cooling of a levitated NP through coherent scattering33. We then apply a laser pulse to this NP which scatters photons from the tweezer laser beam into the cavity mode, creating an optomechanical coupling between the NP and cavity field. This pulse generates and monitors non-Gaussian quantum states of the mechanical motion.

We now define the optomechanical state at time τ by the vector of fields \({{\boldsymbol{u}}}^{\pm }(\tau )={({{\boldsymbol{a}}}^{\dagger },{\boldsymbol{a}})}^{T}={[{b}^{\dagger }(\tau ),{({{\mathcal{A}}}_{{\rm{out}}}^{\pm }(\tau ))}^{\dagger },b(\tau ),{{\mathcal{A}}}_{{\rm{out}}}^{\pm }(\tau )]}^{T}\). The vector of quadratures \({{\boldsymbol{u}}}_{q}^{\pm }(\tau )={({\boldsymbol{p}},{\boldsymbol{x}})}^{T}={[p(\tau ),{{\mathcal{Y}}}_{{\rm{out}}}^{\pm }(\tau ),x(\tau ),{{\mathcal{X}}}_{{\rm{out}}}^{\pm }(\tau )]}^{T}\) is related to the vector of fields via \({{\boldsymbol{u}}}_{q}^{\pm }={\mathbf{\Omega }}{{\boldsymbol{u}}}^{\pm }\) where Ω is a 4 × 4 unitary matrix

$${\mathbf{\Omega }}=\frac{1}{\sqrt{2}}\left[\begin{array}{cc}i{{\bf{I}}}_{2}&-i{{\bf{I}}}_{2}\\ {{\bf{I}}}_{2}&\ \ {{\bf{I}}}_{2}\end{array}\right],$$
(26)

with I2 being 2 × 2 identity matrix. The quantum noises in the system follow a Gaussian distribution and the dynamics have been linearized. This allows the state of the quantum fluctuations at later times to be modeled as a bipartite Gaussian state with zero means in continuous variables. The state is completely described by a 4 × 4 covariance matrix of the operators defined as

$${{\bf{V}}}_{jk}(\tau )=\frac{1}{2}\left\langle {{\boldsymbol{u}}}_{j}^{\pm }(\tau ){{\boldsymbol{u}}}_{k}^{\pm \dagger }(\tau )+{{\boldsymbol{u}}}_{k}^{\pm \dagger }(\tau ){{\boldsymbol{u}}}_{j}^{\pm }(\tau )\right\rangle$$
(27)

We present details on calculations of the covariance matrix in the Supplemental Material. We then relate the Wigner function to the covariance matrix according to

$$W({\boldsymbol{u}};{\rho }_{AB})=\frac{4}{{\pi }^{2}\sqrt{\det ({\bf{V}})}}\exp \left(-\frac{1}{2}{{\boldsymbol{u}}}^{\dagger }{{\bf{V}}}^{-1}{\boldsymbol{u}}\right).$$
(28)

As shown in the Supplementary Material, we arrive at the following expression for the unnormalized mechanical Wigner function if we detect n2 photon at the detector91

$$\begin{array}{rcl}{W}_{B}^{{n}_{2}}(\alpha )&=&\displaystyle\frac{2\,{{\mathcal{P}}}_{0}}{\pi \,{n}_{2}!}\displaystyle\frac{{e}^{-{{\boldsymbol{v}}}^{\dagger }{\bf{L}}{\boldsymbol{v}}}}{\sqrt{\,{\text{det}}\,({{\bf{I}}}_{2}+{{\bf{X}}}_{2}{{\bf{R}}}_{mm})}}\\ &&\times {\left.{\left(\displaystyle\frac{{\partial }^{2}}{\partial {\alpha }_{2}\partial {\beta }_{2}^{* }}\right)}^{{n}_{2}}{e}^{\displaystyle\frac{1}{2}{{\boldsymbol{s}}}_{c}^{T}{\bf{A}}{{\boldsymbol{s}}}_{c}+{{\boldsymbol{z}}}^{T}{{\boldsymbol{s}}}_{c}}\right|}_{{{\boldsymbol{s}}}_{c} = {\bf{0}}},\end{array}$$
(29)

where we have defined \({\boldsymbol{v}}={({\alpha }^{* },\alpha )}^{T}\), \({{\boldsymbol{s}}}_{c}=({\beta }_{2}^{* },{\alpha }_{2})\) and

$$\begin{array}{lll}{\bf{L}}={({{\bf{I}}}_{2}+{{\bf{X}}}_{2}{{\bf{R}}}_{mm})}^{-1}({{\bf{I}}}_{2}-{{\bf{X}}}_{2}{{\bf{R}}}_{mm}),\\ {\bf{A}}={{\bf{R}}}_{cc}-{{\bf{R}}}_{cm}{({{\bf{I}}}_{2}+{{\bf{X}}}_{2}{{\bf{R}}}_{mm})}^{-1}{{\bf{X}}}_{2}{{\bf{R}}}_{mc},\\ {\boldsymbol{z}}=2\,{{\bf{R}}}_{cm}{({{\bf{I}}}_{2}+{{\bf{X}}}_{2}{{\bf{R}}}_{mm})}^{-1}{\boldsymbol{v}}.\end{array}$$
(30)

Here, \({{\mathcal{P}}}_{0}\) and matrices Rij can be expressed in terms of the covariance matrix elements (see Supplementary Material for more details), I2 is the identity matrix and X2 = ΩTΩ. The unnormalized Wigner function is composed of two distinct components. The first component is a Gaussian function of the variable v. The second component involves partial derivatives of a Gaussian function, evaluated at sc = 0. This results in a polynomial expression in v, where the polynomial order depends on the detected photon number pattern. When n2 = 0, indicating no photons registered by the PNRD, the polynomial becomes trivial and equals one. In this case, the unnormalized Wigner function simplifies to a Gaussian distribution, implying the mechanical state is Gaussian. By comparing Equation (29) for the general Wigner function with Eq. (28) for a coherent state Wigner function, the covariance matrix V can be determined for the n2 = 0 case:

$${{\bf{V}}}_{B}({n}_{2}=0)=\frac{1}{2}({{\bf{I}}}_{2}+{{\bf{X}}}_{2}{{\bf{R}}}_{mm}){({{\bf{I}}}_{2}-{{\bf{X}}}_{2}{{\bf{R}}}_{mm})}^{-1}.$$
(31)

The ability to decompose the Wigner function into Gaussian and polynomial components provides insight into the nature of the mechanical state. Specifically, the vanishing of the polynomial contribution for n2 = 0 reveals the inherent Gaussianity of the state. Furthermore, the equation for the covariance matrix V enables full characterization of this Gaussian state. Extending this analysis to non-zero photon numbers n2 ≠ 0 would demonstrate how the detection of additional photons introduces non-Gaussian features into the mechanical state. The polynomial contribution to the Wigner function is a signature of emerging nonclassical behavior. Its structure and order provide quantitative measures of how nonclassical the state becomes. Overall, the dual Gaussian and polynomial nature of the Wigner representation furnishes an intuitive picture of how measurement induces transitions from classical to quantum mechanical states.

A measurement on the optical part with an outcome corresponding to Π1(η) will leave the mechanical part in a non-Gaussian state with the density matrix

$${\tilde{\rho }}_{B}=\mathop{\sum }\limits_{{n}_{2}=0}^{\infty }\left[1-{(1-\eta )}^{{n}_{2}}\right]{\tilde{\rho }}_{B}({n}_{2}),$$
(32)

We can see that conditional measurement results in the elimination of the vacuum component leading to a non-Gaussian state with a Wigner function

$${W}_{B}(\alpha )=\mathop{\sum }\limits_{{n}_{2}=0}^{\infty }\left[1-{(1-\eta )}^{{n}_{2}}\right]{W}_{B}^{{n}_{2}}(\alpha ),$$
(33)

The probability of finding n1 phonons in the mechanical mode conditioning on detecting photon at the output is then given by

$${Q}_{{n}_{1}}=\langle {n}_{1}| {\tilde{\rho }}_{B}| {n}_{1}\rangle =2\pi {\mathcal{N}}\int\,{d}^{2}\alpha {W}_{{n}_{1}}(\alpha ){W}_{B}(\alpha ),$$
(34)

where \({\mathcal{N}}=\int\,{d}^{2}\alpha {W}_{B}(\alpha )\) is the normalization constant and \({W}_{{n}_{1}}(\alpha )\) is the Wigner function of n1-th mechanical Fock state

$${W}_{{n}_{1}}(\alpha )=\frac{1}{\pi }{\left(-1\right)}^{{n}_{1}}\exp \left(-{\alpha }^{2}/2\right){L}_{{n}_{1}}\left({\alpha }^{2}\right)\,,$$
(35)

with \({L}_{{n}_{1}}(\alpha )\) denoting the n1-th Laguerre polynomial.

A phase randomized displacement operation78 transforms the initial mechanical state ρB(τ) into an output state ρB,f according to

$$\begin{array}{lll}{\rho }_{B,f}\,=\,\mathop{\displaystyle\int}\nolimits_{0}^{2\pi }\frac{d\phi }{2\pi }D\left(\sqrt{{N}_{c}}{e}^{i\phi }\right){\rho }_{B}(\tau ){D}^{\dagger }\left(\sqrt{{N}_{c}}{e}^{i\phi}\right)\\ \qquad=\,\mathop{\sum}\limits _{n=0}{p}_{f}(n| {N}_{c})\left\vert n\right\rangle \left\langle n\right\vert ,\end{array}$$
(36)

with

$$\begin{array}{lll}{p}_{f}(n| {N}_{c})&=&\mathop{\sum}\limits _{m=0}{q}_{m}{\left| \langle n| D\left(\sqrt{{N}_{c}}\right)| m\rangle \right| }^{2}\\ &=&\mathop{\sum}\limits _{m=0}{q}_{m}\frac{m!}{n!}{e}^{-{N}_{c}}{N}_{c}^{n-m}{L}_{m}^{n-m}{({N}_{c})}^{2}\end{array}$$
(37)

To compute the Fisher information of this probe state, we assume detection that can resolve a few lowest Fock states (up to \({k}_{\max }\)). Such detection is characterized by the POVM including projectors on the few lowest Fock states: \({\Pi }_{k}=| k\left.\right\rangle \left\langle \right.k|\) for \(k=0,\ldots ,{k}_{\max }\), and a projector on the rest of the Fock space \({\Pi }_{k+}=1-\mathop{\sum }\nolimits_{k}^{{k}_{\max }}{\Pi }_{k}\). The Fisher information of the probe state corresponding to this POVM is

$$F({N}_{c})=\mathop{\sum }\limits_{n=0}^{{k}_{\max }}\frac{1}{{p}_{f}(n| {N}_{c})}{\left[\frac{\partial {p}_{f}(n| {N}_{c})}{\partial {N}_{c}}\right]}^{2}+\frac{1}{{p}_{k+}}{\left[\frac{\partial {p}_{k+}({N}_{c})}{\partial {N}_{c}}\right]}^{2}$$
(38)

with

$${p}_{k+}({N}_{c})=\mathop{\sum }\limits_{n={k}_{\max }+1}^{\infty }{p}_{f}(n| {N}_{c})$$
(39)

To evaluate the QNG and the non-classicality depth, we examine the evolution of the mechanical density matrix given by the master equation:

$$\frac{d}{dt}\rho =\frac{\gamma }{2}\left\{(\bar{n}+1){\mathcal{L}}[b]+\bar{n}{\mathcal{L}}[{b}^{\dagger }]\right\}$$
(40)

where \({\mathcal{L}}[o]=2o\rho {o}^{\dagger }-{o}^{\dagger }o\rho -\rho {o}^{\dagger }o\) represents the Lindblad superoperator. Subsequently, we transform the master equation into a Fokker-Planck equation for the Wigner function:

$$\frac{d}{dt}W(x,y)=\frac{\gamma }{2}\left\{{\partial }_{x}x+{\partial }_{y}y+\left(\bar{n}+\frac{1}{2}\right){\partial }_{xx}+{\partial }_{yy}\right\}W(x,y)$$
(41)