tsim.core.instructions.mrx
← Module overview
function
source
functionmrx¶source
tsim.core.instructions.mrx
Signature
def mrx(b: GraphRepresentation, qubit: int, p: float = 0, invert: bool = False) -> NoneX-basis demolition measurement (optionally noisy).
Projects each target qubit into |+> or |->, reports its value (false=|+>, true=|->), then resets to |+>.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
b | GraphRepresentation | required | |
qubit | int | required | |
p | float | 0 | |
invert | bool | False |