This repository contains methods for simulation stochastic quantum trajectories for a qubit coupled to a resonator undergoing dispersive measurement.
Weak measurements are implemented by coupling the system to a measurement apparatus or meter
then dispersive measurement can be modeled as a unitary operation that shifts the measurement readout
The width of the Gaussian is given by the ratio between
We can write a POVM for this measurement,
which can be used to derive the probability of obtaining a certain readout given a qubit's density matrix,
When a readout
A stochastic quantum trajectory is obtained by repeating this process many times.
This simualtor can be used to generate stochastic trajectories for a qubit undergoing an additional drive.
First, create a qubit in a state given by a Bloch vector WeakMeasurement
and RabiDrive
. A weak measurement can be applied with any strength tau
, any measurement efficiency eta
, any measurement direction (unlike in the description above, where I focused on a
qubit = Qubit([0,1,0])
weak_z = WeakMeasurement(direction = [0,0,1], tau = 100, efficiency = 1)
rabi_x = RabiDrive(direction = [1,0,0], angle = np.pi, time_start = 0, time_end = 1000, pulse_type = "sine squared")
qubit.set_measurements([weak_z])
qubit.set_controls([rabi_x])
fig = qubit.plot_trajectories(n_trajectories = 10, time_start = 0, time_end = 1000, dt = 1)