Skip to content

dq.plot.xyz

xyz(
    states: QArrayLike,
    *,
    ax: Axes | None = None,
    times: ArrayLike | None = None,
    hlines: bool = True
)

Plot the expectation value of the Pauli operators of a qubit \(\sigma_x\), \(\sigma_y\) and \(\sigma_z\) as a function of time.

Warning

Documentation redaction in progress.

Examples

>>> H = dq.sigmax() + dq.sigmay()
>>> jump_ops = [jnp.sqrt(0.2) * dq.sigmam()]
>>> psi0 = dq.excited()
>>> tsave = jnp.linspace(0, 10.0, 1001)
>>> result = states = dq.mesolve(H, jump_ops, psi0, tsave)
>>> dq.plot.xyz(result.states, times=tsave)

plot_xyz