ParticleNumber#

class ParticleNumber(num_spatial_orbitals)[source]#

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

Parameters:

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

Methods

interpret(result)[source]#

Interprets an EigenstateResult in this property’s context.

Parameters:

result (qiskit_nature.second_q.problems.EigenstateResult) – the result to add meaning to.

second_q_ops()[source]#

Returns the second quantized particle number operator.

Returns:

A mapping of strings to FermionicOp objects.

Return type:

Mapping[str, FermionicOp]