BaseFermionBackend.initialize_circuit

BaseFermionBackend.initialize_circuit(occupations)[source]

Initialize a fermionic quantum circuit with the given occupations.

Parameters:

occupations (Union[List[int], List[List[int]]]) – List of occupation numbers. When List[int] is given, the occupations correspond to the number of indistinguishable fermionic particles in each mode, e.g. [0, 1, 1, 0] implies that sites one and two are occupied by a fermion. When List[List[int]] is given, the occupations describe the number of particles in fermionic modes with different (distinguishable) species of fermions. Each inner list gives the occupations of one fermionic species.

Returns:

Qiskit QuantumCircuit with a quantum register for each fermionic species

initialized with the load instructions corresponding to the given occupations

Return type:

circuit

Raises:

QiskitColdAtomError – If occupations do not match the backend