second_quantization#
Converting second quantized operators to matrix form and back#
The second_quantization
package provides tools for working with second quantized operators in quantum many-body systems. It allows you to:
Convert second quantized expressions to matrix representations
Work with different basis states and fermion/boson operators
Analyze quantum many-body systems including quantum dots and superconducting devices
Perform time evolution and spectroscopic calculations
Quick Start#
Install the package and start exploring quantum many-body systems:
import second_quantization as sq
# Create a Hilbert space with 2 orbitals
hilbert = sq.HilbertSpace(n_orbitals=2)
# Define creation and annihilation operators
c_dag = hilbert.creation_operator(0, spin='up')
c = hilbert.annihilation_operator(0, spin='up')
# Convert to matrix form
matrix = hilbert.to_matrix(c_dag * c)
Tutorials#
Check out our comprehensive tutorials:
Tutorial Overview: Tutorial - Introduction to the package capabilities
API Reference#
For detailed API documentation, see the API Reference reference.