atlas_q.mpo_ops.MPO#
- class atlas_q.mpo_ops.MPO(tensors, n_sites)[source]#
Bases:
objectMatrix Product Operator
Represents an operator as a chain of 4-tensors: O = Σ W[0]_{s₀s₀’} W[1]_{s₁s₁’} … W[n-1]_{sₙ₋₁sₙ₋₁’}
Each tensor W[i] has shape [χ_L, d, d, χ_R] where: - χ_L, χ_R: left and right bond dimensions - d: physical dimension (2 for qubits)
Methods
from_local_ops(ops[, device])Create MPO from list of local operators (one per site)
from_operators(ops[, device])Alias for from_local_ops
identity(n_sites[, device, dtype])Create identity MPO
- __init__(tensors, n_sites)#
Methods
__init__(tensors, n_sites)from_local_ops(ops[, device])Create MPO from list of local operators (one per site)
from_operators(ops[, device])Alias for from_local_ops
identity(n_sites[, device, dtype])Create identity MPO
Attributes