qrunch.quantum.operators.second_quantization

Module containing operators used in the second quantization formulation.

Currently, fermionic and paired hardcore bosonic operators are supported.

Module Attributes

SecondQuantizationExpression

Type Alias of an expression of FermionOperators or an expression of HardcoreBosonOperators

SecondQuantizationHermitianSum

Type Alias of an expression of fermion and hard-core boson operators

Functions

is_fermionic(operator)

Tell static type checkers that in the True-branch this is the restricted version.

is_hardcore_bosonic(operator)

Tell static type checkers that in the True-branch this is the restricted version.

SecondQuantizationExpression

Type Alias of an expression of FermionOperators or an expression of HardcoreBosonOperators

alias of Expression[FermionOperators] | Expression[PairedHardcoreBosonOperators]

SecondQuantizationHermitianSum = qrunch.quantum.operators.second_quantization.fermion.sums.FermionHermitianSumProtocol | qrunch.quantum.operators.second_quantization.hardcore_boson.sums.PairedHardcoreBosonHermitianSumProtocol

Type Alias of an expression of fermion and hard-core boson operators

is_fermionic(operator: FermionHermitianSumProtocol | PairedHardcoreBosonHermitianSumProtocol) TypeGuard[FermionHermitianSumProtocol]

Tell static type checkers that in the True-branch this is the restricted version.

Parameters:

operator (FermionHermitianSumProtocol | PairedHardcoreBosonHermitianSumProtocol)

Return type:

TypeGuard[FermionHermitianSumProtocol]

is_hardcore_bosonic(operator: FermionHermitianSumProtocol | PairedHardcoreBosonHermitianSumProtocol) TypeGuard[PairedHardcoreBosonHermitianSumProtocol]

Tell static type checkers that in the True-branch this is the restricted version.

Parameters:

operator (FermionHermitianSumProtocol | PairedHardcoreBosonHermitianSumProtocol)

Return type:

TypeGuard[PairedHardcoreBosonHermitianSumProtocol]

Modules

fermion

Module that contains the abstract fermion operators \(\hat{a}\) and \(\hat{a}^{\dagger}\).

hardcore_boson

Module that contains the abstract hardcore boson operators \(\hat{b}\) and \(\hat{b}^\dagger\).