mqt.qudits.simulation.backends.backendv2

Module Contents

class Backend(provider: MQTQuditProvider, name: str | None = None, description: str | None = None, **fields: typing_extensions.Unpack[DefaultOptions])[source]

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

class DefaultOptions[source]

Bases: TypedDict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

shots: int
memory: bool
noise_model: NoiseModel | None
file_path: str | None
file_name: str | None
full_state_memory: bool
name = None
description: str | None = None
noise_model: NoiseModel | None = None
shots: int = 50
memory: bool = False
full_state_memory: bool = False
file_path: str | None = None
file_name: str | None = None
property energy_level_graphs: list[LevelGraph]
Abstractmethod:

set_options(**fields: typing_extensions.Unpack[Backend]) None[source]
property options: dict[str, Any]
property provider: MQTQuditProvider
abstractmethod run(circuit: QuantumCircuit, **options: typing_extensions.Unpack[DefaultOptions]) Job[source]
abstractmethod execute(circuit: QuantumCircuit, noise_model: NoiseModel | None = None) numpy.typing.NDArray[numpy.complex128] | None[source]