Qmod.
For more information regarding classical types see: classical types.
Members:
Pauli
Enumeration for the Pauli matrices used in quantum computing. Represents the four Pauli matrices used in quantum mechanics: Identity (I), X, Y, and Z operators. The Pauli matrices are defined as: Attributes:I
X
Y
Z
PauliTerm
A term in a Hamiltonian, represented as a product of single-qubit Pauli matrices. Attributes:pauli
pauli: CArray[Pauli]
coefficient
coefficient: CReal
IndexedPauli
A single-qubit Pauli matrix on a specific qubit given by its index. Attributes:pauli
pauli: Pauli
index
index: CInt
SparsePauliTerm
A term in the Hamiltonian, represented as a sparse product of single-qubit Pauli matrices. Attributes: paulis (CArray[IndexedPauli]): The list of chosen sparse Pauli operators in the term corresponds to a product of them. (See IndexedPauli) coefficient (CReal): The coefficient of the term (floating number). Methods:paulis
paulis: CArray[IndexedPauli]
coefficient
coefficient: CReal
SparsePauliOp
Represents a collection of sparse Pauli operators. Methods:
Attributes:
terms
terms: list[SparsePauliTerm]
num_qubits
num_qubits: int
options:
show_source: false
show_if_no_docstring: false
options:
show_source: false
show_if_no_docstring: false
Members:
SparsePauliOp
Represents a collection of sparse Pauli operators. Methods:
Attributes:
terms
terms: list[SparsePauliTerm]
num_qubits
num_qubits: int