ParticleNumber#

class ParticleNumber(num_spatial_orbitals)[ソース]#

ベースクラス: object

The ParticleNumber property.

The following attributes can be set via the initializer but can also be read and updated once the ParticleNumber object has been constructed.

num_spatial_orbitals#

the number of spatial orbitals.

Type:

int

パラメータ:

num_spatial_orbitals (int) – the number of spatial orbitals in the system.

Methods

interpret(result)[ソース]#

Interprets an EigenstateResult in this property’s context.

パラメータ:

result (EigenstateResult) – the result to add meaning to.

second_q_ops()[ソース]#

Returns the second quantized particle number operator.

戻り値:

A mapping of strings to FermionicOp objects.

戻り値の型:

Mapping[str, FermionicOp]