Skip to content

BaseNoiseModel

Bases: Displayable

Base class for an object that holds noisy operation specifications.

This class is primarily designed to translate between a circuit description and operations that will be applied to a quantum state.


Attributes

Name Type Value Doc
gate_keys list read-only property (abstract) Gate keys this model can take in circuits.
instrument_keys list read-only property (abstract) Instrument keys this model can take in circuits.
name str unset Name of circuit backend
output_gate_reps list[type[GateRep]] read-only property (abstract) GateRep classes this model can output.
output_instrument_reps list[type[InstrumentRep]] read-only property (abstract) InstrumentRep classes this model can output.

decode

Inherited static method from Serializable.decode().


display

Inherited method from Displayable.display().


dump

Inherited method from Serializable.dump().


encode

Inherited static method from Serializable.encode().


get_reps abstractmethod

get_reps(circuit: BasePhysicalCircuit, gatereps: Sequence[type[GateRep]], instreps: Sequence[type[InstrumentRep]]) -> list[OperationRep]

Get list of operator representations that can be applied.

Parameters:

Name Type Description Default
circuit BasePhysicalCircuit

Physical circuit to get the representations for

required
gatereps Sequence[type[GateRep]]

Allowed output GateRep classes for gate operations.

required
instreps Sequence[type[InstrumentRep]]

Allowed output InstrumentRep classes for instrument operations.

required

Returns:

Name Type Description
list

List of operation representations for the circuit

TODO describe the conditions under which this function is allowed to error.

load

Inherited class method from Serializable.load().


read

Inherited class method from Serializable.read().


serialize_function

Inherited static method from Serializable.serialize_function().


write

Inherited method from Serializable.write().