qdk_chemistry.data.noise_models module

QDK/Chemistry noise model module for simulating noise in quantum circuits.

class qdk_chemistry.data.noise_models.SupportedErrorTypes(*values)[source]

Bases: CaseInsensitiveStrEnum

Supported error types for quantum gates with case-insensitive string lookup.

DEPOLARIZING_ERROR = 'depolarizing_error'
QUBIT_LOSS = 'qubit_loss'
class qdk_chemistry.data.noise_models.SupportedGate(*values)[source]

Bases: CaseInsensitiveStrEnum

An enumeration of quantum gate types with case-insensitive string lookup.

Gate types gathered from QDK QIR instructions.

CCX = 'ccx'
CX = 'cx'
CY = 'cy'
CZ = 'cz'
H = 'h'
ID = 'id'
MEASURE = 'measure'
RESET = 'reset'
RX = 'rx'
RXX = 'rxx'
RY = 'ry'
RYY = 'ryy'
RZ = 'rz'
RZZ = 'rzz'
S = 's'
SDG = 'sdg'
SWAP = 'swap'
SX = 'sx'
SXDG = 'sxdg'
T = 't'
TDG = 'tdg'
X = 'x'
Y = 'y'
Z = 'z'
classmethod from_string(gate_str)[source]

Get a Gate enum value from its string representation.

Return type:

SupportedGate

Parameters:

gate_str (str) – String representation of the gate (case-insensitive).

Returns:

The corresponding SupportedGate enum value.

Return type:

SupportedGate

Raises:

ValueError – If no matching gate is found.