ParticleNumber#

class ParticleNumber(num_spatial_orbitals)[fuente]#

Bases: 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

Parámetros:

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

Methods

interpret(result)[fuente]#

Interprets an EigenstateResult in this property’s context.

Parámetros:

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

second_q_ops()[fuente]#

Returns the second quantized particle number operator.

Devuelve:

A mapping of strings to FermionicOp objects.

Tipo del valor devuelto:

Mapping[str, FermionicOp]