Lowering
Lowering
dataclass
Lowering()
lower
lower(
sym_name: str,
noise_model: NoiseModel,
return_qreg: bool = False,
) -> ir.Method
Lower the noise model to a method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the method to generate. |
required |
return_qreg
|
bool
|
Use the quantum register as the return value. |
False
|
Returns:
Name | Type | Description |
---|---|---|
Method |
Method
|
The generated kirin method. |
Source code in .venv/lib/python3.12/site-packages/bloqade/qbraid/lowering.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|