bloqade.qbraid.schema.NoiseModel
← Module overview
class
property
method
sourcemethod
source
classNoiseModel¶source
bloqade.qbraid.schema.NoiseModel
Bases: BaseModel, Generic[ErrorModelType]
Noise model for a circuit.
class NoiseModelFields
all_qubits (Tuple[int, …]): The qubit indices for the noise model. gate_events (List[GateEvent[ErrorModelType]]): The gate events for the noise model.
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
all_qubits | Tuple[int, ...] | Field(default_factory=tuple) | |
gate_events | List[GateEvent[ErrorModelType]] | Field(default_factory=list) |
propertynum_qubits¶source
bloqade.qbraid.schema.NoiseModel.num_qubits
methodlower_noise_model¶source
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
| Name | Type | Default | Description |
|---|---|---|---|
sym_name | str | required | The name of the method to generate. |
return_qreg | bool | False | Whether to return the quantum register after the method has completed execution. Useful for obtaining the full state vector. |
Returns
Method: The generated kirin method.
methoddecompiled_circuit¶source
bloqade.qbraid.schema.NoiseModel.decompiled_circuit
def decompiled_circuit() -> strClean the circuit of noise.
Returns
strstr: The decompiled circuit from hardware execution.