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

FermionSimulator.options

Return the options for the backend

FermionSimulator.version

Methods

FermionSimulator.configuration()

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.

FermionSimulator.measure_observable_expectation(...)

Measure the expectation value of an observable in a state prepared by a given quantum circuit that uses fermionic gates.

FermionSimulator.name()

Return the backend name.

FermionSimulator.properties()

Return the backend properties.

FermionSimulator.provider()

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

FermionSimulator.status()

Return the backend status.