What problem does it solve?
This Skill allows users to simulate quantum mechanical systems, study open quantum systems, and perform quantum optics and cavity QED simulations.
Core Features & Use Cases
- Quantum Dynamics: Simulate closed and open quantum systems with various solvers.
- Quantum States and Operators: Create and manipulate quantum states and operators.
- Time Evolution and Dynamics: Solve for time evolution of quantum states and dynamics.
- Analysis and Measurement: Compute physical quantities like expectation values, entropy, and entanglement.
- Visualization: Visualize quantum states and dynamics on the Bloch sphere, Wigner function, and more.
- Advanced Methods: Implement Floquet theory, HEOM, permutational invariance, and stochastic solvers.
- Use Case: Simulate a damped harmonic oscillator or two-qubit entanglement dynamics.
Quick Start
Run the following Python code to simulate the time evolution of a quantum state:
from qutip import *
import numpy as np
import matplotlib.pyplot as plt
# Create quantum state
psi = basis(2, 0) # |0⟩ state
# Create operator
H = sigmaz() # Hamiltonian
# Time evolution
tlist = np.linspace(0, 10, 100)
result = sesolve(H, psi, tlist, e_ops=[sigmaz()])
# Plot results
plt.plot(tlist, result.expect[0])
plt.xlabel('Time')
plt.ylabel('⟨σz⟩')
plt.show()