FermionSimulator¶
- class FermionSimulator(config_dict=None, provider=None)[source]¶
A simulator to simulate general fermionic circuits.
This general fermion simulator backend simulates fermionic circuits with gates that have generators described by fermionic Hamiltonians. It computes the statevector and unitary of a circuit and simulates measurements.
Initializing the backend from a configuration dictionary
Attributes
Return the options for the backend
Methods
Return the backend configuration.
FermionSimulator.draw
(qc, **draw_options)Draw the circuit by defaulting to the draw method of QuantumCircuit.
FermionSimulator.get_basis
(circuit[, ...])Get the basis of fermionic states in occupation number representation for the simulation of a given quantum circuit.
FermionSimulator.initialize_circuit
(occupations)Initialize a fermionic quantum circuit with the given occupations.
Measure the expectation value of an observable in a state prepared by a given quantum circuit that uses fermionic gates.
Return the backend name.
Return the backend properties.
Return the backend Provider.
FermionSimulator.run
(circuits[, shots, ...])Method to run circuits on the backend.
FermionSimulator.set_options
(**fields)Set the options fields for the backend
Return the backend status.