FermionSimulator.get_basis

static FermionSimulator.get_basis(circuit, num_species=1)[source]

Get the basis of fermionic states in occupation number representation for the simulation of a given quantum circuit.

Parameters:
  • circuit (QuantumCircuit) – A quantum circuit using Fermionic Gates.

  • num_species (int) – Number of different fermionic species described by the circuit.

Returns:

the fermionic basis in which the simulation of the circuit is performed.

Return type:

basis