BaseFermionBackend

class BaseFermionBackend(configuration, provider=None, **fields)[source]

Abstract base class for fermionic tweezer backends.

Initialize a backend class

Parameters:
  • configuration (BackendConfiguration) – A backend configuration object for the backend object.

  • provider (qiskit.providers.Provider) – Optionally, the provider object that this Backend comes from.

  • fields – kwargs for the values to use to override the default options.

Raises:

AttributeError – if input field not a valid options

In addition to the public abstract methods, subclasses should also implement the following private methods:

abstract classmethod _default_options()

Return the default options

This method will return a qiskit.providers.Options subclass object that will be used for the default options. These should be the default parameters to use for the options of the backend.

Returns:

A options object with

default values set

Return type:

qiskit.providers.Options

Attributes

BaseFermionBackend.options

Return the options for the backend

BaseFermionBackend.version

Methods

BaseFermionBackend.configuration()

Return the backend configuration.

BaseFermionBackend.draw(qc, **draw_options)

Modified circuit drawer to better display atomic mixture quantum circuits.

BaseFermionBackend.initialize_circuit(...)

Initialize a fermionic quantum circuit with the given occupations.

BaseFermionBackend.measure_observable_expectation(...)

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

BaseFermionBackend.name()

Return the backend name.

BaseFermionBackend.properties()

Return the backend properties.

BaseFermionBackend.provider()

Return the backend Provider.

BaseFermionBackend.run(run_input, **options)

Run on the backend.

BaseFermionBackend.set_options(**fields)

Set the options fields for the backend

BaseFermionBackend.status()

Return the backend status.