Enrique Solano

Protein folding on a 64 qubit trapped-ion hardware via counterdiabatic quantum optimization

Alejandro Gomez Cadavid [1,2], Pavle NikaÄ\udc8dević, Pranav Chandarana [1,2,3,4], Sebastián V. Romero, Enrique Solano [1], Narendra N. Hegade [1,5], Miguel Angel Lopez-Ruiz, Claudio Girotto, Hanna Linn, Hakan Doga, Evgeny Epifanovsky, Panagiotis Kl. Barkoutsos, Ananth Kaushik, Martin Roetteler

Abstract

We report the largest trapped-ion hardware demonstration of lattice protein-folding optimization to date, using bias-field digitized counterdiabatic quantum optimization (BF-DCQO) on a fully connected 64-qubit Barium development system similar to the forthcoming IonQ Tempo line. Six peptide sequences with 14-16 amino-acid residues are encoded using a coarse-grained tetrahedral lattice model, yielding higher-order spin-glass Hamiltonians with long-range interactions involving up to five-body terms and mapped to 46-61 qubits. The resulting instances are demanding for near-term quantum hardware because low-energy configurations must satisfy backbone-geometry constraints while optimizing dense residue-contact interactions. BF-DCQO uses a non-variational bias-feedback mechanism, where low-energy samples from each round define longitudinal fields that guide subsequent quantum evolutions. Across the studied instances, BF-DCQO shifts raw sampled energy distributions toward lower energies than uniform random sampling, with the strongest improvements appearing in residue-contact variables. To preserve this signal, we introduce a consensus-based post-processing pipeline that combines quantum-learned contact information with feasible backbone geometries. The resulting hybrid workflow reaches the classical reference energy in multiple instances and improves over the corresponding random-seeded pipeline. These results show that BF-DCQO can generate structured samples for dense protein-folding Hamiltonians at previously unexplored trapped-ion scales.

Quantum Feature Selection with Higher-Order Binary Optimization on Trapped-Ion Hardware

Carlos Flores-Garrigós, Anton Simen [1,3], Qi Zhang [1], Enrique Solano [1], Narendra N. Hegade [1,2], Sayonee Ray, Claudio Girotto, Jason Iaconis, Martin Roetteler

Abstract

We present a quantum feature-selection framework based on a higher-order unconstrained binary optimization (HUBO) formulation that explicitly incorporates multivariate dependencies beyond standard quadratic encodings. In contrast to QUBO-based approaches, the proposed model includes one-, two-, and three-body interaction terms derived from mutual-information measures, enabling the objective function to capture feature relevance, pairwise redundancy, and higher-order statistical structure within a unified energy model. To suppress trivial all-selected solutions, we further include structured linear penalties that promote sparsity while preserving informative variables. The resulting HUBO instances are optimized with digitized counterdiabatic quantum optimization on IonQ Forte and compared against noiseless quantum simulation as well as two classical dimensionality-reduction baselines: SelectKBest based on mutual information and principal component analysis (PCA). We evaluate the proposed workflow on two benchmark classification datasets, namely the Gallstone dataset and the Spambase dataset, and analyze both predictive performance and selected-subset structure. The results show good qualitative agreement between hardware executions and noiseless simulations, supporting the feasibility of implementing higher-order feature-selection Hamiltonians on current trapped-ion processors. In addition, the quantum approach yields competitive classification performance while producing compact and informative feature subsets, highlighting the potential of higher-order quantum optimization for machine-learning preprocessing tasks.

Protein folding with an all-to-all trapped-ion quantum computer

Sebastián V. Romero, Alejandro Gomez Cadavid [1,2], Pavle NikaÄ\udc8dević, Enrique Solano [1], Narendra N. Hegade [1], Miguel Angel Lopez-Ruiz, Claudio Girotto, Masako Yamada, Panagiotis Kl. Barkoutsos, Ananth Kaushik, Martin Roetteler

Abstract

We experimentally demonstrate that the bias-field digitized counterdiabatic quantum optimization (BF-DCQO) algorithm, implemented on IonQ's fully connected trapped-ion quantum processors, offers an efficient approach to solving dense higher-order unconstrained binary optimization (HUBO) problems. Specifically, we tackle protein folding on a tetrahedral lattice for up to 12 amino acids, representing the largest quantum hardware implementations of protein folding problems reported to date. Additionally, we address MAX 4-SAT instances at the computational phase transition and fully connected spin-glass problems using all 36 available qubits. Across all considered cases, our method consistently achieves optimal solutions, highlighting the powerful synergy between non-variational quantum optimization approaches and the intrinsic all-to-all connectivity of trapped-ion architectures. Given the expected scalability of trapped-ion quantum systems, BF-DCQO represents a promising pathway toward practical quantum advantage for dense HUBO problems with significant industrial and scientific relevance.

Digitized Counterdiabatic Quantum Algorithms for Logistics Scheduling

Archismita Dalal [1], Iraitz Montalban [1], Narendra N. Hegade [1], Alejandro Gomez Cadavid [1,2], Enrique Solano [1], Abhishek Awasthi [3], Davide Vodola [3], Caitlin Jones [3], Horst Weiss [4,1], Gernot Füchsel

Abstract

We study a job shop scheduling problem for an automatized robot in a high-throughput laboratory and a travelling salesperson problem with recently proposed digitized counterdiabatic quantum optimization (DCQO)algorithms. In DCQO, we find the solution of an optimization problem via an adiabatic quantum dynamics, which is accelerated with counterdiabatic protocols. Thereafter, we digitize the global unitary to encode it in a digital quantum computer. For the job-shop scheduling problem, we aim at finding the optimal schedule for a robot executing a number of tasks under specific constraints, such that the total execution time of the process is minimized. For the traveling salesperson problem, the goal is to find the path that covers all cities and is associated with the shortest traveling distance. We consider both hybrid and pure versions of DCQO algorithms and benchmark the performance against digitized quantum annealing and the quantum approximate optimization algorithm (QAOA). In comparison to QAOA, the DCQO solution is improved by several orders of magnitude in success probability using the same number of two-qubit gates. Moreover, we implement our algorithms on cloud-based superconducting and trapped-ion quantum processors. Our results demonstrate that circuit compression using counterdiabatic protocols is amenable to current NISQ hardware and can solve logistics scheduling problems, where other digital quantum algorithms show insufficient performance.

Bias-field digitized counterdiabatic quantum optimization

Alejandro Gomez Cadavid [1,2], Archismita Dalal [1], Anton Simen [1], Enrique Solano [1], Narendra N. Hegade [1]

Abstract

We introduce a method for solving combinatorial optimization problems on digital quantum computers, where we incorporate auxiliary counterdiabatic (CD) terms into the adiabatic Hamiltonian, while integrating bias terms derived from an iterative digitized counterdiabatic quantum algorithm. We call this protocol bias-field digitized counterdiabatic quantum optimization (BF-DCQO). Designed to effectively tackle large-scale combinatorial optimization problems, BF-DCQO demonstrates resilience against the limitations posed by the restricted coherence times of current quantum processors and shows clear enhancement even in the presence of noise. Additionally, our purely quantum approach eliminates the dependency on classical optimization required in hybrid classical-quantum schemes, thereby circumventing the trainability issues often associated with variational quantum algorithms. Through the analysis of an all-to-all connected general Ising spin-glass problem, we exhibit a polynomial scaling enhancement in ground state success probability compared to traditional DCQO and finite-time adiabatic quantum optimization methods. Furthermore, it achieves scaling improvements in ground state success probabilities, increasing by up to two orders of magnitude, and offers an average 1.3x better approximation ratio than the quantum approximate optimization algorithm for the problem sizes studied. We validate these findings through experimental implementations on both trapped-ion quantum computers and superconducting processors, tackling a maximum weighted independent set problem with 36 qubits and a spin-glass on a heavy-hex lattice with 100 qubits, respectively. These results mark a significant advancement in gate-based quantum computing, employing a fully quantum algorithmic approach.

Digital-Analog Counterdiabatic Quantum Optimization with Trapped Ions

Shubham Kumar [1], Narendra N. Hegade [1], Alejandro Gomez Cadavid [1,2], Murilo Henrique de Oliveira [1], Enrique Solano [1,3], F. Albarrán-Arriagada

Abstract

We introduce a hardware-specific, problem-dependent digital-analog quantum algorithm of a counterdiabatic quantum dynamics tailored for optimization problems. Specifically, we focus on trapped-ion architectures, taking advantage from global Mølmer-Sørensen gates as the analog interactions complemented by digital gates, both of which are available in the state-of-the-art technologies. We show an optimal configuration of analog blocks and digital steps leading to a substantial reduction in circuit depth compared to the purely digital approach. This implies that, using the proposed encoding, we can address larger optimization problem instances, requiring more qubits, while preserving the coherence time of current devices. Furthermore, we study the minimum gate fidelity required by the analog blocks to outperform the purely digital simulation, finding that it is below the best fidelity reported in the literature. To validate the performance of the digital-analog encoding, we tackle the maximum independent set problem, showing that it requires fewer resources compared to the digital case. This hybrid co-design approach paves the way towards quantum advantage for efficient solutions of quantum optimization problems.

Efficient DCQO Algorithm within the Impulse Regime for Portfolio Optimization

Alejandro Gomez Cadavid [1], Iraitz Montalban [1,2], Archismita Dalal [1], Enrique Solano [1], Narendra N. Hegade [1]

Abstract

We propose a faster digital quantum algorithm for portfolio optimization using the digitized-counterdiabatic quantum optimization (DCQO) paradigm in the impulse regime, that is, where the counterdiabatic terms are dominant. Our approach notably reduces the circuit depth requirement of the algorithm and enhances the solution accuracy, making it suitable for current quantum processors. We apply this protocol to a real-case scenario of portfolio optimization with 20 assets, using purely quantum and hybrid classical-quantum paradigms. We experimentally demonstrate the advantages of our protocol using up to 20 qubits on an IonQ trapped-ion quantum computer. By benchmarking our method against the standard quantum approximate optimization algorithm and finite-time digitized-adiabatic algorithms, we obtain a significant reduction in the circuit depth by factors of 2.5 to 40, while minimizing the dependence on the classical optimization subroutine. Besides portfolio optimization, the proposed method is applicable to a large class of combinatorial optimization problems.

Digitized-counterdiabatic quantum factorization

Narendra N. Hegade [1,2], Enrique Solano [1]

Abstract

We factorize a 48-bit integer using 10 trapped-ion qubits on a Quantinuum's quantum computer. This result outperforms the recent achievement by B. Yan et al., arXiv:2212.12372 (2022), increasing the success probability by a factor of 6 with a non-hybrid digitized-counterdiabatic quantum factorization (DCQF) algorithm. We expect better results with hybrid DCQF methods on our path to factoring RSA-64, RSA-128, and RSA-2048 in this NISQ era, where the latter case may need digital-analog quantum computing (DAQC) encoding.

Digitized-Counterdiabatic Quantum Algorithm for Protein Folding

Pranav Chandarana [1,2], Narendra N. Hegade [3,4], Iraitz Montalban [3,5], Enrique Solano [3,4,6], Xi Chen [1,2]

Abstract

We propose a hybrid classical-quantum digitized-counterdiabatic algorithm to tackle the protein folding problem on a tetrahedral lattice. Digitized-counterdiabatic quantum computing is a paradigm developed to compress quantum algorithms via the digitization of the counterdiabatic acceleration of a given adiabatic quantum computation. Finding the lowest energy configuration of the amino acid sequence is an NP-hard optimization problem that plays a prominent role in chemistry, biology, and drug design. We outperform state-of-the-art quantum algorithms using problem-inspired and hardware-efficient variational quantum circuits. We apply our method to proteins with up to 9 amino acids, using up to 17 qubits on quantum hardware. Specifically, we benchmark our quantum algorithm with Quantinuum's trapped ions, Google's and IBM's superconducting circuits, obtaining high success probabilities with low-depth circuits as required in the NISQ era.

Dynamics of an unbalanced two-ion crystal in a Penning trap for application in optical mass spectrometry

Manuel J. Gutiérrez, Joaquín Berrocal, Francisco Domínguez, Iñigo Arrazola, Michael Block, Enrique Solano, Daniel Rodríguez

Abstract

In this article, the dynamics of an unbalanced two-ion crystal comprising the 'target' and the 'sensor' ions confined in a Penning trap has been studied. First, the low amplitude regime is addressed. In this regime, the overall potential including the Coulomb repulsion between the ions can be considered harmonic and the axial, magnetron and reduced-cyclotron modes split up into the so-called 'stretch' and 'common' modes, that are generalizations of the well-known 'breathing' and 'center-of-mass' motions of a balanced crystal made of two ions. By measuring the frequency modes of the crystal and the sensor ion eigenfrequencies using optical detection, it will be possible to determine the target ion's free-cyclotron frequency. The measurement scheme is described and the non-harmonicity of the Coulomb interaction is discussed since this might cause large systematic effects.

Probabilistic Eigensolver with a Trapped-Ion Quantum Processor

Jing-Ning Zhang [1,2], Iñigo Arrazola, Jorge Casanova [2], Lucas Lamata [2], Kihwan Kim [1], Enrique Solano [2,3,4]

Abstract

Quantum simulation of complex quantum systems and their properties often requires the ability to prepare initial states in an eigenstate of the Hamiltonian to be simulated. In addition, to compute the eigenvalues of a Hamiltonian is in general a non-trivial problem. Here, we propose a hybrid quantum-classical probabilistic method to compute eigenvalues and prepare eigenstates of Hamiltonians which are simulatable with a trapped-ion quantum processor.

The TRAPSENSOR Facility: an Open-Ring 7-Tesla Penning Trap for Laser-Based Precision Experiments

Manuel J. Gutiérrez, Joaquín Berrocal, Juan Manuel Cornejo [1,2], Francisco Domínguez, Jesús J. Del Pozo, Iñigo Arrazola, Javier Bañuelos, Pablo Escobedo [1], Oliver Kaleja [3,4], Lucas Lamata [2,1,5], Raúl A. Rica, Stefan Schmidt [1], Michael Block [3,4,6], Enrique Solano [2,7,8,1,5], Daniel Rodríguez

Abstract

The Penning-trap electronic-detection technique that offers the precision and sensitivity requested in mass spectrometry for fundamental studies in nuclear and particle physics has not been proven yet to be universal. This has motivated the construction of a Penning-trap facility aiming at the implementation of a novel detection method, consisting in measuring motional frequencies of singly-charged trapped ions in strong magnetic fields, through the fluorescence photons from the 4s$^2$S$_{1/2}\rightarrow $4p$^2$P$_{1/2}$ atomic transition in $^{40}$Ca$^+$. The key element of this facility is an open-ring Penning trap, built and fully characterized, which is coupled upstream to a preparation Penning trap similar to those built at Radioactive Ion Beam facilities. Motional frequency measurements of trapped ions stored in the open-ring trap have been carried out by applying external dipolar and quadrupolar fields in resonance with the ions' eigenmotions, in combination with time-of-flight identification. The infrastructure to observe the fluorescence photons from $^{40}$Ca$^+$, comprising the twelve laser beams needed in 7~Tesla, and a two-meters long system to register the image in a high-sensitive CCD sensor, has also been successfully tested by observing optically the trapped $^{40}$Ca$^+$ ions. This demonstrates the capabilities of this facility for the proposed laser-based mass-spectrometry technique, and introduces it as a unique platform to perform laser-spectroscopy experiments with implications in different fields of physics.

Quantum simulation of the quantum Rabi model in a trapped ion

Dingshun Lv, Shuoming An, Zhenyu Liu, Jing-Ning Zhang, Julen S. Pedernales [2,3], Lucas Lamata [2], Enrique Solano [2,4], Kihwan Kim [11]

Abstract

The quantum Rabi model, involving a two-level system and a bosonic field mode, is arguably the simplest and most fundamental model describing quantum light-matter interactions. Historically, due to the restricted parameter regimes of natural light-matter processes, the richness of this model has been elusive in the lab. Here, we experimentally realize a quantum simulation of the quantum Rabi model in a single trapped ion, where the coupling strength between the simulated light mode and atom can be tuned at will. The versatility of the demonstrated quantum simulator enables us to experimentally explore the quantum Rabi model in detail, including a wide range of otherwise unaccessible phenomena, as those happening in the ultrastrong and deep strong coupling regimes. In this sense, we are able to adiabatically generate the ground state of the quantum Rabi model in the deep strong coupling regime, where we are able to detect the nontrivial entanglement between the bosonic field mode and the two-level system. Moreover, we observe the breakdown of the rotating-wave approximation when the coupling strength is increased, and the generation of phonon wave packets that bounce back and forth when the coupling reaches the deep strong coupling regime. Finally, we also measure the energy spectrum of the quantum Rabi model in the ultrastrong coupling regime.

Nonlinear Quantum Rabi Model in Trapped Ions

Xiao-Hang Cheng [1,2], Iñigo Arrazola, Julen S. Pedernales [2,3], Lucas Lamata [2], Xi Chen [1], Enrique Solano [1,2,4]

Abstract

We study the nonlinear dynamics of trapped-ion models far away from the Lamb-Dicke regime. This nonlinearity induces a sideband cooling blockade, stopping the propagation of quantum information along the Hilbert space of the Jaynes-Cummings and quantum Rabi models. We compare the linear and nonlinear cases of these models in the ultrastrong and deep strong coupling regimes. Moreover, we propose a scheme that simulates the nonlinear quantum Rabi model in all coupling regimes. This can be done via off-resonant nonlinear red and blue sideband interactions, yielding applications as a dynamical quantum filter.

Motional studies of one and two laser-cooled trapped ions for electric-field sensing applications

Francisco Domínguez, Manuel Jesús Gutiérrez, Ã\udc8dñigo Arrazola, Joaquín Berrocal, Juan Manuel Cornejo, Jesús Javier Del Pozo, Raúl Alberto Rica, Stefan Schmidt, Enrique Solano, Daniel Rodríguez

Abstract

We have studied the dynamics of one and two laser-cooled trapped $^{40}$Ca$^+$ ions by applying electric fields of different nature along the axial direction of the trap, namely, driving the motion with a harmonic dipolar field, or with white noise. These two types of driving induce distinct motional states of the axial modes; a coherent oscillation with the dipolar field, or an enhanced Brownian motion due to an additional contribution to the heating rate from the electric noise. In both scenarios, the sensitivity of an isolated ion and a laser-cooled two-ion crystal has been evaluated and compared. The analysis and understanding of this dynamics is important towards the implementation of a novel Penning-trap mass-spectroscopy technique based on optical detection, aiming at improving precision and sensitivity.

A Single-Ion Reservoir as a High-Sensitive Sensor of Electric Signals

Francisco Domínguez, Ã\udc8dñigo Arrazola, Jaime Doménech, Julen Simon Pedernales, Lucas Lamata [2], Enrique Solano [2,3,1,4], Daniel Rodríguez

Abstract

A single-ion reservoir has been tested, and characterized in order to be used as a highly sensitive optical detector of electric signals arriving at the trapping electrodes. Our system consists of a single laser-cooled $^{40}$Ca$^+$ ion stored in a Paul trap with rotational symmetry. The performance is observed through the axial motion of the ion, which is equivalent to an underdamped and forced oscillator. Thus, the results can be projected also to Penning traps. We have found that, for an ion oscillator temperature $T_{\scriptsize{\rm axial}}\lesssim 10$~mK in the forced-frequency range $ω_z =2π\times (80,200$~kHz), the reservoir is sensitive to a time-varying electric field equivalent to an electric force of $5.3(2)$~neV/$μ$m, for a measured quality factor $Q=3875(45)$, and a decay time constant $γ_z=88(2)$~s$^{-1}$. This method can be applied to measure optically the strength of an oscillating field or induced (driven) charge in this frequency range within times of tens of milliseconds. Furthermore the ion reservoir has been proven to be sensitive to electrostatic forces by measuring the ion displacement. Since the heating rate is below $0.3$~$μ$eV/s, this reservoir might be used as optical detector for any ion or bunch of charged particles stored in an adjacent trap.

Fermion-antifermion scattering via boson exchange in a trapped ion

Xiang Zhang [1,2], Kuan Zhang [1], Yangchao Shen [1], Jingning Zhang [1], Man-Hong Yung [3,1], Jorge Casanova [4], Julen S. Pedernales [5], Lucas Lamata [5], Enrique Solano [5,6], Kihwan Kim [1]

Abstract

Quantum field theories describe a wide variety of fundamental phenomena in physics. However, their study often involves cumbersome numerical simulations. Quantum simulators, on the other hand, may outperform classical computational capacities due to their potential scalability. Here, we report an experimental realization of a quantum simulation of fermion-antifermion scattering mediated by bosonic modes, using a multilevel trapped ion, which is a simplified model of fermion scattering in both perturbative and nonperturbative quantum electrodynamics. The simulated model exhibits prototypical features in quantum field theory including particle pair creation and annihilation, as well as self-energy interactions. These are experimentally observed by manipulating four internal levels of a $^{171}\mathrm{Yb}^{+}$ trapped ion, where we encode the fermionic modes, and two motional degrees of freedom that simulate the bosonic modes. Our experiment establishes an avenue towards the efficient implementation of fermionic and bosonic quantum field modes, which may prove useful in scalable studies of quantum field theories in perturbative and nonperturbative regimes.

Tachyon physics with trapped ions

Tony E. Lee [1,2], Unai Alvarez-Rodriguez [3], Xiao-Hang Cheng [3,4], Lucas Lamata [3], Enrique Solano [3,5]

Abstract

It has been predicted that particles with imaginary mass, called tachyons, would be able to travel faster than the speed of light. There has not been any experimental evidence for tachyons occurring naturally. Here, we propose how to experimentally simulate Dirac tachyons with trapped ions. Quantum measurement on a Dirac particle simulated by a trapped ion causes it to have an imaginary mass so that it may travel faster than the effective speed of light. We show that a Dirac tachyon must have spinor-motion correlation in order to be superluminal. We also show that it exhibits significantly more Klein tunneling than a normal Dirac particle. We provide numerical simulations of realistic ion systems and show that our scheme is feasible with current technology.

Time and spatial parity operations with trapped ions

Xiao-Hang Cheng [1,2], Unai Alvarez-Rodriguez [2], Lucas Lamata [2], Xi Chen [1], Enrique Solano [2,3]

Abstract

We propose a physical implementation of time and spatial parity transformations, as well as Galilean boosts, in a trapped-ion quantum simulator. By embedding the simulated model into an enlarged simulating Hilbert space, these fundamental symmetry operations can be fully realized and measured with ion traps. We illustrate our proposal with analytical and numerical techniques of prototypical examples with state-of-the-art trapped-ion platforms. These results pave the way for the realization of time and spatial parity transformations in other models and quantum platforms.

Time Reversal and Charge Conjugation in an Embedding Quantum Simulator

Xiang Zhang [1], Yangchao Shen [1], Junhua Zhang [1], Jorge Casanova [2,3], Lucas Lamata [2], Enrique Solano [2,4], Man-Hong Yung [1], Jing-Ning Zhang [1], Kihwan Kim [1]

Abstract

The understanding of symmetry operations has brought enormous advancements in physics, ranging from elementary particle to condensed matter systems. In quantum mechanics, symmetry operations are described by either unitary or antiunitary operators, where the latter are unphysical transformations that cannot be realized in physical systems. So far, quantum simulators of unitary and dissipative processes, the only allowed physical dynamics, have been realized in key experiments. Here, we present an embedding quantum simulator able to encode unphysical operations in a multilevel single trapped ion. In this sense, we experimentally observe phenomena associated with the nonunitary Majorana dynamics and implement antiunitary symmetry operations, i.e., time reversal and charge conjugation, at arbitrary evolution times. These experiments enhance the toolbox of quantum simulations towards applications involving unphysical operations.

Two-dimensional cavity grid for scalable quantum computation with superconducting circuits

Ferdinand Helmer, Matteo Mariantoni, Austin G. Fowler, Jan von Delft, Enrique Solano, Florian Marquardt

Abstract

Superconducting circuits are among the leading contenders for quantum information processing. This promising avenue has been strengthened with the advent of circuit quantum electrodynamics, underlined by recent experiments coupling on-chip microwave resonators to superconducting qubits. However, moving towards more qubits will require suitable novel architectures. Here, we propose a scalable setup for quantum computing where such resonators are arranged in a two-dimensional grid with a qubit at each intersection. Its versatility allows any two qubits on the grid to be coupled at a swapping overhead independent of their distance and yields an optimal balance between reducing qubit transition frequency spread and spurious cavity-induced couplings. These features make this setup unique and distinct from existing proposals in ion traps, optical lattices, or semiconductor spins. We demonstrate that this approach encompasses the fundamental elements of a scalable fault-tolerant quantum computing architecture.

Measuring irreversible dynamics of a quantum harmonic oscillator

Giovanna Morigi [1], Enrique Solano [1,2], Berthold-Georg Englert [1], Herbert Walther [1]

Abstract

We show that the unitary evolution of a harmonic oscillator coupled to a two-level system can be undone by a suitable manipulation of the two-level system -- more specifically: by a quasi-instantaneous phase change. This enables us to isolate the dissipative evolution to which the oscillator may be exposed in addition. With this method we study the decoherence of a photon mode in cavity QED, and that of the quantized harmonic motion of trapped ions. We comment on the relation to spin echoes and multi-path interferometry.