Skip to content

bloqade.qbraid.schema.NoiseModel

← Module overview

classNoiseModelsource

bloqade.qbraid.schema.NoiseModel

Bases: BaseModel, Generic[ErrorModelType]

Noise model for a circuit.

class NoiseModel

Fields

all_qubits (Tuple[int, …]): The qubit indices for the noise model. gate_events (List[GateEvent[ErrorModelType]]): The gate events for the noise model.

Attributes

NameTypeDefaultDescription
all_qubitsTuple[int, ...]Field(default_factory=tuple)
gate_eventsList[GateEvent[ErrorModelType]]Field(default_factory=list)

propertynum_qubitssource

bloqade.qbraid.schema.NoiseModel.num_qubits

num_qubits: int

Return the number of qubits in the noise model.

source

methodlower_noise_modelsource

bloqade.qbraid.schema.NoiseModel.lower_noise_model

def lower_noise_model(sym_name: str, return_qreg: bool = False)

Lower the noise model to a method.

Parameters

NameTypeDefaultDescription
sym_namestrrequiredThe name of the method to generate.
return_qregboolFalseWhether to return the quantum register after the method has completed execution. Useful for obtaining the full state vector.

Returns

Method: The generated kirin method.

source

methoddecompiled_circuitsource

bloqade.qbraid.schema.NoiseModel.decompiled_circuit

def decompiled_circuit() -> str

Clean the circuit of noise.

Returns

strstr: The decompiled circuit from hardware execution.

source