{'fraction_non_alphanumeric': 0.03333679869702325, 'fraction_numerical': 0.012440655646810133, 'mean_word_length': 4.522005357826253, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A macrorealistic test in hybrid quantum optomechanics

We discuss a scheme for macrorealistic theories of the Leggett-Garg form [A. J. Leggett and A. Garg, Phys. Rev. Lett. 54, 857 (1985)]. Our scheme is based on a hybrid optomechanical system. It seems reasonable to test these inequalities with an optomechanical system, since in an optomechanical cavity it is possible to create non-classical states of the mirror through a projective measurement on the cavity field. We will present the protocol to generate such non-classicality for a general optomechanical cavity and after we will carry out a theoretical test for one of the possible formulations of these inequalities using a hybrid optomechanical system. Specifically, the inequality will be investigated for an harmonic oscillator coupled to a two-level system, which replaces the light field of the cavity. The aim is to reproduce, with this system, the evolution of a single spin-1/2 for which the inequality is violated; this is achievable through the conditioning of the two-level system which will be used as an ancilla.


Introduction
Contrarily to what one might naively believe, the observation of distinct quantum superpositions is an insufficient step to exclude a realistic picture at the macroscopic level. Temporal Bell-like inequalities such as those originally proposed by Leggett and Garg [1] provide the avenue to ascertain the presence of macroscopic quantum coherence in the state of a given system.
Such inequalities make use of the framework built around two assumptions that, together, define classical (macroscopic) reality. The first claims that measurements can be made on a system without affecting its subsequent evolution. This embodies the "non-invasive measurability" assumption. The second states that, at any instant of time, the system itself will be in a well-defined state among those it has available, thus providing the "macroscopic realism" assumption. The simultaneous validity of such assumptions constrains very strongly the values that the two-time auto-correlation function of suitably chosen observables of the system can take.
The values taken at different times by such function can be organized in the form of inequalities [1], akin to Bell's ones, providing benchmarks for any dynamics conforming to our classical intuition. The violation of such inequalities rules out the framework defined by the two assumptions above and that is commonly intended as macrorealism. The experimental falsification of macrorealistic inequalities has been recently reported in setups based on linear optics [2,3], nuclear magnetic resonance [4,5,6], superconducting quantum circuits [7], spin impurities in silicon [8], a nitrogen-vacancy defect in diamond [9], and a single atom loaded in an optical lattice and subjected to quantumwalk dynamics [10,11]. Macrorealistic arguments have been used in reference [12] to investigate non-classicality of excitation-transfer processes in light-harvesting complexes. Experimental tests of the LG inequalities, going beyond two-level systems, have been implemented with continuous modular variable measurements of the motional degree of freedom of a trapped ion [13].
However, to date, the falsification of macrorealistic inequalities has addressed nearly exclusively microscopic systems. A test fit to address non-classical features in the dynamical evolution of genuinely mesoscopic/macroscopic systems is not only much needed but also fundamentally interesting: the macroscopicity of a system increases with the mass of the system itself and with the degree of distinguishability of the components of a superposition state, which might require, for instance, large spatial separations achievable only in truly large-scale systems. Only few recent efforts have moved in this direction, using dichotomic measurement of oscillators [14].
A promising avenue towards the narrowing of the experimental falsification of macrorealistic theories is provided by quantum optomechanics, where the motion of massive mechanical systems is driven, controlled and detected by their suitably arranged coupling to optical modes of a cavity [15]. Schemes for the preparation of large-size superposition states of the mechanical system have been drawn [16,17]. Progress towards the control of hybrid systems embedding effective two-level systems into otherwise standard optomechanical platforms offer additional leverage potential for the engineering of non-classical states of massive mechanical systems [18,19,20,21,22,23].
This paper addresses precisely this point by proposing a scheme that, by making use of controlled dynamics in a hybrid optomechanical system and a special information encoding protocol inspired by coherent state-based quantum computing [24], is able to falsify macrorealistic inequalities of the Leggett-Garg form.
The remainder of this manuscript is organized as follows: in section 2 we review the arguments behind the construction of a Leggett-Garg-like inequality for a single spin-1/2 particle. This will provide the benchmark system for the analysis that we present in later sections. section 3 introduces the hybrid optomechanical platform that we use to test macrorealism in the dynamics of a genuinely massive mechanical system. We discuss both the effective dynamical map operated on the mechanical system and the special encoding of information that we propose to make our scheme akin to the spin-1/2 case of section 2. The falsification of a macrorealistic inequality is then discussed in section 4. Finally, in section 5 we draw our conclusions.

Leggett-Garg inequalities
Here, we briefly discuss the form of the macrorealistic inequality addressed in our study and provide an explicit example based on the dynamics of a simple spin-1/2 particle.
Starting from the assumptions of non-invasive measurability and macrorealism per se, Leggett and Garg predicted that the two-time autocorrelation functions for a dichotomic observableQ (whose only measurement outcomes are Q(t i ) ∈ {+1, −1}) of any physical system are constrained to satisfy the Leggett-Garg (LG) inequality [1] K ≡ |C 01 + C 12 + C 23 − C 03 | ≤ 2. (1) Here, C ij is the two-time correlation function between two measurements at discrete times t i and t j , defined as Here, P is the joint probability of obtaining the outcomes Q i = ± 1 (Q j = ± 1) at the time t i (t j ). Equation (1) thus entails a sequence of measurements performed at times t i (i = 1, .., 3). In fact, the measurement at the initial time t 0 can be absorbed in the process of initial-state preparation, and thus bypassed. Any classical (and thus macrorealistic) dynamics results in a function K that satisfies equation (1) whose violation signals the departure from the framework set by the assumptions underpinning macrorealism. Suitable quantum dynamics violates the macrorealistic constraint, as will be explicitly shown in section 2.1. A simple derivation of the constraint set by equation (1) is given in reference [25], while in reference [26] the links between divisibility of the underlying dynamics and the violation of temporal Bell-like inequalities akin to equation (1) have been investigated.

Example: Falsification of macrorealistic theories using a two-level system
Let us now provide a benchmark example of quantum dynamics that violates the macrorealistic boundary. For the purpose of this work, it is enough to consider a simple two-level system (such as a spin-1/2 particle) evolving according to the Hamiltonian H = ωσ x and probed by the dichotomic observableQ =σ z . Hereσ j (j = x, z) is the j-Pauli matrix of the two-level system and ω is the frequency splitting between the logical states |±1 such thatQ |±1 = ± |±1 . We assume the initial state of the system to be |+1 , although any other initial state would result in the same conclusions as the following.
The two-time autocorrelation function C ij reads explicitly , Here we have streamlined the notation by setting P is the conditional probability to get outcome α at time t i provided that outcome β was obtained at measurement time t j . We have used the completeness relation of probability P + i + P − i = 1. While, in principle, the instants of time at which the measurements should be performed are entirely arbitrary, it is convenient to take equally spaced values of t j (j = 0, .., 3) and call ω(t j+1 − t j ) = ∆τ . Under such conditions, we have C 01 = C 12 = C 23 = cos(2∆τ ) and C 03 = cos(6∆τ ), so that The plot of K(∆τ ) against the -so far undetermined -value of ∆τ is given in figure 1, which reveals the existence of time windows within which K(∆τ ) ∈ [2, 2 √ 2]. The shortest time at which the maximum violation of the macrorealistic bound is achieved is ∆τ = π/8. This is remarkable as, for this value, the state resulting from the evolution e −i∆τσx = cos(∆τ )I − i sin(∆τ )σ x is 0.924 |+1 − i0.383 |−1 , i.e. a state with quantum coherence -defined in terms of the l 1 -norm of coherence [27] -as small as 0.708.
We will use this example as a benchmark for the protocol based on optomechanical dynamics illustrated in section 3.

Dynamics and control of a hybrid optomechanical system
In this section we will first illustrate the hybrid optomechanical setting that we will use for the design of the test of macroscopic realism at the core of this work. We will then draw a comparison between the dynamics resulting from the form of control that we propose and what has been described in section 2.1.

A hybrid optomechanical system
Although various controlled-coupling schemes can be considered, depending on the specific platform that one aims to manage, the system that we consider here is based on the tripartite coupling between a three-level atom in a Λ configuration, a singlemode optical cavity pumped by a laser field at frequency ω p and the movable mirror of an optomechanical cavity [18]. The atom is driven by an external field at frequency ω i that enters the cavity radially, as in figure 2. We label { |+1 A , |−1 A } the states belonging to the fundamental atomic doublet and |e A the excited state. The atomic transition |+1 A ↔ |e A ( |−1 A ↔ |e A ) is guided, at rate Ω (g), by the radial field (the cavity field). The detuning between each transition and the respective driving field is δ, while ∆ = ω c − ω p is the cavity-pump detuning. The movable mirror is schematized as a harmonic oscillator with frequency ω m , coupled to the cavity field through radiation-pressure [15]. We assume the conditions δ Ω g γ e with γ e the decay rate from the atomic excited state, such that an off-resonant twophoton Raman transition is realized. In the rotating frame defined by the operator is the annihilation (creation) operator of the cavity field andb (b † ) is the corresponding operator of the mirror, the Hamiltonian of the system readsĤ sys =Ĥ A +Ĥ R +Ĥ M +Ĥ C +Ĥ M C +Ĥ CP , wherê Here,Ĥ A is the atomic part of the energy,Ĥ R is the Raman Hamiltonian,Ĥ M (Ĥ C ) is the free Hamiltonian of the mirror (cavity field) andĤ M C is the radiation-pressure shows the scheme of principle for the engineering of the effective interaction Hamiltonian in equation (8): An optomechanical cavity embeds a threelevel atom whose energy scheme is shown in panel (b). The parameters entered in the figure are introduced in the body of the manuscript. The energy difference between states |+1 A and |−1 A is ω −+ . We show the symbol used for an acousto-optic modulator (AOM) that can be used to generate the radial field (driving one of the atomic transitions) directly from the pump that drives the optomechanical cavity.
term. Finally,Ĥ CP is the cavity-pump interaction. We also take ∆ g, χ, so that both the atomic excited state and the cavity field are only virtually populated and can be eliminated from the dynamics of the system. This leads to the effective Hamiltonian with η = χg 2 Ω 2 /δ 2 ∆ 2 . This derivation can be found in reference [18]. Through the two-photon Raman transition, the virtual quanta resulting from the atom-cavity field interaction are transferred (by the bus embodied by the cavity field) to the mechanical system. Therefore, the state of the latter experiences a displacement (in phase space) conditioned on the state of the effective two-level atomic system resulting from the elimination of the excited state. Remarkably, this mechanism allows for the independent preparation of the atomic and mechanical subsystems: the mechanism in equation (8) can be turned off by a suitably large two-photon Raman detuning δ.

Time evolution map
Having introduced the effective model that we aim at exploiting, we now describe the controlled map that will be used to mimic the dynamics of the spin-1/2 particle illustrated in section 2.1. We assume the initial state of the atomic two-level system to be an arbitrary superposition |ψ 0 A = c − |−1 A +c + |+1 A of the energy states |±1 A (|c − | 2 +|c + | 2 = 1), while the analogous state of the mechanical system is the coherent state |α M (with α ∈ C being the amplitude of the coherent state). Such states can be engineered with large purity using pulsed-driving schemes as in references [16,28].
First, the propagatorÛ t generated by equation (8) readŝ , which gives us the evolved state of the atomic-mechanical compound equation (10) is a so-called micro-macro state that displays, in general, quantum entanglement between the microscopic degrees of freedom of the two-level system and the macroscopic ones of the mechanical mode. The degree of A-M entanglement of the evolved state, as measured by the von Neumann entropy of the reduced state of the atom, is independent of the choice of α but only determined by the initial degree of coherence between the atomic states and the degree of distinguishability of |α M and |α − iηt M . This ultimately boils down to the value taken by the displacement amplitude. In order to set a benchmark, we take c − = c + = 1/ √ 2, call G = ηt and get the von Neumann entropy Even moderate values of t lead to significant entanglement [cf. figure 3]: for instance, we have S vN (1) 0.72. Such strong quantum correlations between the two-level system and the mechanical one is the key to the emulation of the dynamics in section 2.1. While tracing out the two-level system results in the incoherent mixture of coherent stateŝ which exhibits no quantum feature, the conditional mechanical state achieved by projecting the two-level system onto 0.11 for G = 1.5). Therefore, the combination of the joint unitary evolution of the A-M compound and projection of the state of the two-level system onto |+ x A transfers the coherences that were initially in the state of A to the mechanical mode. This is the key for mimicking the performance at the basis of the test of macrorealism illustrated in section 2.
In what follows, we callˆ t the dynamical map applied to the initial state of both the mechanical system and the two-level system. The map, resulting from the concatenation of operations illustrated above, gives the time-evolved state of the mechanical system withΠ +x the projector onto |+ x A and N a normalization constant necessary in light of the projective operation. This map depends only on the actual time interval in which the system evolves. In this analysis we fixed the value of G meaning that we set a time t so that the actual dynamics of the mirror depends only on the coefficients of the ancillary state.

Macrorealistic test
In order to compute the Leggett-Garg inequality we need to find correlation functions for different time intervals. Our proposal shares the same interaction mechanism as the one in reference [30]. However, it differs from it significantly, in that our protocol relies on the intuition that the macrorealistic inequality should be violated if the LG function, for the mechanical oscillator, reproduces the dynamic of a spin-1/2 particle whose evolution in time is governed by the x-Pauli operator, as shown in section 2.1. We accomplish such a goal using the two-level system as an ancilla that assists our scheme at each stage of the macrorealistic test for the oscillator and it is fundamental in obtaining a violation of LG inequality. In reference [30], a superposition of macroscopically distinguishable states is created with the same effective Hamiltonian as in equation (8), but the inequality is tested by performing measurements on the two-level system, whose state carries along a signature of non-classicality for the mechanical oscillator.
We proceed step by step to illustrate the features of our analysis.

Auto-correlation function in time intervals
The initial state is chosen as a product of a coherent state |α M for the mechanical oscillator and the following coherent superposition for the two-level system here the coefficients are chosen to be dependent on a parameter τ which can be manipulated so that the mechanical system will mimic at all times the dynamics of the spin described in section 2.1. With such a choice of initial state of the two-level system, the dynamical map of equation (14) consists of the single Kraus operator towards the benchmark (cos τ ) 2 form of such conditional probability as G grows for α = 1. with It is straightforward to check that this state is similar to the one obtained at time t 1 in the case of a spin-1/2 particle. First, using the same notation as in section 2.1, the latter reads |φ t 1 = cos ∆t|+1 − i sin ∆t|−1 . Second, in light of the quasi-orthogonality of sufficiently displaced coherent states, we can assume the following logical encoding of a quasi-spin particle into the space spanned by the coherent-state components of equation (17) as follows Here, the subscript L stands for the logical two-level system that we have invoked. Notice that similar encodings represent the building blocks of coherent-state quantum computing [31]. Finally, as we will see in the remainder of our analysis, the presence of the extra relative phase between the logical states is inessential for the success of our test. With such encoding, the observable of choice for the construction of the two-time auto-correlation functions entering the LG function akin to equation (1) would be given by |+1 +1| L − |−1 −1| L . This implies the ability to discriminate between |α M and |α − iG M , which can be done as discussed in reference [24] [cf. section 4.3] We can now compute the probabilities to build the two-time correlation functions. We have The conditional probability to obtain outcome +1 L at time t 1 provided we obtained the same outcome at t 0 is This expression shows that a sufficiently large distinguishability of the coherent-state components of |ϕ t 1 (i.e. a faithful encoding of a two-level system) gives P +|+ 10 → cos 2 τ , thus reproducing the result valid in the spin-1/2 case. Notice that the value of G at which this occurs depends on the amplitude α of the initial coherent state of system M . This is shown in figure 4, where we address the features of P +|+ 10 against both τ and G. Needless to say, the conditional probability to find −1 L at t 1 once +1 L has been achieved at t 0 is obtained by conservation of total probability as P −|+ 10 = 1 − P +|+ 10 . The two-time correlation function from the initial time t 0 and the time t 1 is thus given by the overall expression For G 1, the correlation function in equation (21) tends to cos(2τ ), thus recovering that of the simple spin-1/2 model. Notice that the evaluation of the two-time auto-correlation function for the time period t 0 − t 3 proceeds along lines that are very similar to those followed in order to evaluate C 01 . In fact, it is enough to change τ → 3τ and G → 3G in equation (21) to get C 03 .

Auto-correlation function in time intervals
For the next time interval, we need to reset the initial state of the two-level system, while system M is in the state given in equation (17). The state at the instant of time t 1 is thus with |ψ 1 A = A τ |+1 A + B τ |−1 A . The coefficients A τ and B τ depend on the value of τ and will be determined by imposing the constraint that the evolved state of M at t 2 must have the same shape of the one for the spin-1/2 particle, that is Proceeding as done in section 4.1 we get to the reduced state of the mechanical system M at time t 2 The explicit form of N 2 , A τ and B τ is straightforward to obtain by ensuring the normalization of |ψ 1 A and |ϕ t 2 M and imposing the condition which would render equation (23) analogous to the corresponding one in the spin-1/2 case. Such expressions are too cumbersome to be reported here.
The presence of |α − 2iG in equation (23) paves the way to considerations on the logical encoding chosen for our scheme, which we now arrange in such a way that the following positive valued operator measurement (POVM) is considered withΠ + the projector onto the logical |+1 L state. The two-time autocorrelation function between t 2 and t 3 can be computed in a way analogous to what has been done in the previous time interval, making use of the following conditional probabilities and their complements Calculations for the last time interval, t 2 -t 3 have been done following the same procedure illustrated above. The corresponding expressions are, however, not informative enough to be reported here, and we thus omit them.

Results of the test
The Leggett-Garg function K can finally be computed to test the inequality against the coupling parameter G. Larger values of G mean that the encoded basis of coherent states is more similar to an orthogonal basis, thus making function K similar to the one for the spin-1/2 particle. The main difference between the two cases rests in the existence of a natural dichotomic observable upon which to perform measurements in the latter case, which is not the case for a harmonic oscillator. Notwithstanding such fundamental difference, the LG function for the harmonic oscillator in figure 5 closely resembles the spin-1/2 case even for moderate values of G. Function K shows a periodicity of π in each plot, while in the previous case the period was π/2; this is due to the difference in the correlation functions involved in its definition. The violation of the macrorealistic inequality at short evolution times shown in figure 5 signals the non-classical character of the statistics sampled in order to construct the conditional probabilities entering K.
It is worth mentioning that the correlation function that we need to reconstruct the LG function could be inferred by performing measurements on a probing cavity field. A possibility is to use a double-optomechanical cavity with the mechanical oscillator in a membrane-in-the-middle configuration, as suggested in reference [32]. A second possibility is to use a single cavity, as in figure 2, and a second mode with a polarization that is orthogonal to the one of the field used to mediate the interaction between the two-level ancilla and the mechanical oscillator in our scheme. By arranging suitable conditions of adiabatic following between mechanical oscillator and probing light field, as illustrated in reference [32], one can map the temporal behaviour of the relevant operators of the mechanical oscillator onto that of the probing field. Noticeably, the scheme works under the assumption of large damping rate for the probing field mode. The measurement scheme would thus be robust against the cavity dissipation rate. Measurements of temporal correlations on the latter, and the calibration of the noise affecting the cavity, would thus result in the possibility to infer the violation of the LG inequality.
The last ingredient of the measurement scheme consists of the distinction between coherent states, which enables the logical encoding invoked in our work. Such distinction can be done using the probing optical field upon which we would write the state of the mechanical oscillator and interference of its coherent state to a reference one at a 50:50 beam splitter, following the protocol illustrated in reference [24]. Schemes for the direct tomography of the mechanical state have also been put forward [33].

Open system dynamics
In order to account for the potentially detrimental effects due to the unavoidable environmental action, we have conducted an investigation including mechanical dissipation. This has been done by assuming Markovian damping in a cold environment at a rate κ, resulting in the master equation whereˆ is the state of the system. We solved equation (29) using the quantum unravelling approach [29]. This involves dividing the time interval into very small time steps of length δt. A random number between 0 and 1 is generated at the start of each against the values of G for a unitary evolution (red dashed line) and a conservative value of κ/η = 10 −3 (blue solid line). (b) Leggett-Garg function K against τ for the ideal unitary dynamics (red solid line) and κ/η = 10 −3 with G = 2 (blue dots). The red squares show the value taken by K at τ = π/10 for κ/η = 10 −3 and G = 2.5, 3, 3.5 (growing as shown by the arrow). The dashed horizontal line shows the classical macrorealistic bound and the shaded region highlights the range of values of τ where the LG inequality is violated. Assuming that η lies between 1 and 100 Hz [18], the value of κ/η suggests a quality factor Q = ω/κ in the range 10 7 − 10 9 which is experimentally feasible [15].
time step and we calculate the value of the function where |ϕ is the state of the atom and mechanical oscillator at this stage of the evolution. The value of this function will always be much smaller than 1 because it depends on the small time step δt. If the random number is greater than δp, which it will be in most cases, then the system evolves according to a modified Hamiltonian, which for this system readsĤ Since the time steps are very small, we can evolve the system according to the time evolution operator If the random number is less than δp, then a quantum jump occurs. Here, the quantum jump operator is √ κb, so when this acts on the state of the system the mechanical oscillator effectively loses one excitation. After each time step the state must be renormalized. We evolved the system in this way until a certain final time and obtained a trajectory, or a possible outcome of this process. We repeated this many times and collected many trajectories before averaging over them to obtain the solution of equation (29). Once we obtained the state of the system at time t, we projected the state of the two-level system onto |+ x A and found the reduced state of the mechanical oscillator as in section 3.2.
The results of this approach are shown in figure 6 (a) and (b), where we study the decay of the probability P +|+ 10 as a paradigmatic instance of the effects of the mechanical damping. Large values of G, despite ideally making the mechanical state components more distinguishable, imply larger evolution times of the mechanical oscillator and thus more chances of environmental action. This results in the spoiling of the dampingaffected P +|+ 10 with respect to the ideally closed case scenario. This has an effect over the values taken by the LG function K, as studied in figure 6 (b): the range of values of τ within which we would observe a violation of the LG inequality is shrunk (while the amplitude of violation is slightly reduced). Moreover, at sufficiently large values of G we lose the violation of the macrorealistic inequality altogether.

Conclusions
We have proposed a method to violate a macrorealistic LG-like inequality in a hybrid optomechanical setting. By making use of the control allowed by the engineered interaction between a mechanical oscillator and an ancillary two-level system, we have shown a protocol able to mimic closely the features of the conditional probabilities entering the LG function of a spin-1/2 particle. The success of our scheme relies on the ability of the ancilla-oscillator interaction to generate coherent superpositions of distinguishable mechanical states, whose features are adjusted to achieve a significant violation of the classical macrorealistic bound. We have assessed the robustness of the violation to the effects of environmental damping, showing that it strongly depends on suitable arrangements of the ancilla-oscillator interaction time. The scheme is robust against a residual thermal character of the initial preparation of the mechanical oscillator as far as the width of the Wigner function of the initial thermal state in phase space is smaller than the value of G. By exploiting a logical encoding reminiscent of the one used in the context of coherent state-based quantum information processing, our proposal contributes to the endeavours for the design of viable routes toward the observation of non-classical effect at the mesoscopic and macroscopic scale.