uniqc_cpp 扩展 API 参考

uniqc_cpp 是 pybind11 构建的 C++ 扩展(分发名 uniqc-cppsimulator), 提供两个模拟器类与一个全局 RNG。方法签名随类型存根 uniqc_cpp.pyi 一起发布,IDE / 类型检查器可直接使用。

两个类的门操作 API 相同;差异在于:

  • StatevectorSimulator:态矢量(最多 30 量子比特)。噪声通道为**随机轨迹** (Monte Carlo,每次调用采样一条轨迹);支持 measure_single_shot。

  • DensityOperatorSimulator:密度算符(最多 10 量子比特)。噪声通道为 确定性 超算符演化。

约定

  • 量子比特下标从 0 开始;角度一律为弧度。基态整数中 qubit 0 是最低有效位。

  • 多数量值门带可选 global_controller``(全局控制位列表)与 ``dagger (取逆)参数。

  • pmeasure/get_prob 等概率读出和 measure_single_shot 单次采样不改变 量子态;measure_qubit 会坍缩态,reset_qubit 在测量后按需施加 X 门。

  • pmeasure([q0, q1, ...]) 的返回索引和 measure_single_shot([q0, q1, ...]) 的返回整数都把**列表第一个量子比特放在最低有效位**。后者返回 Python int; 相同线程内重设 seed 会复现之后的随机噪声与测量序列。

  • QRAM 地址和数据列表也采用首元素为最低有效位的顺序;数据数组必须恰好有 2^len(addr_qubits) 项,每项必须能用 len(data_qubits) 位表示,否则抛出 ValueError,不会越界访问或静默丢弃高位。

  • 两个后端都是稠密表示:态矢量含 2^n 个 complex<double>,密度矩阵含 4^n 个。仅 30 比特态矢量本身即需 16 GiB,临时副本另计;10 比特密度矩阵 本身为 16 MiB。上限不是容量保证,也不表示支持任意宽寄存器或稀疏大状态。

  • 多线程设置是进程级全局配置,但各模拟器实例及随机数引擎不保证多线程并发调用 安全;请在调用线程中设置种子并执行该线程的实验。

参见

模块级函数

uniqc_cpp.seed(arg0: SupportsInt | SupportsIndex) → None
uniqc_cpp.rand() → float

StatevectorSimulator

class uniqc_cpp.StatevectorSimulator

基类:pybind11_object

__init__(self: uniqc_cpp.StatevectorSimulator) → None
amplitude_damping(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, gamma: SupportsFloat | SupportsIndex) → None
bitflip(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, p: SupportsFloat | SupportsIndex) → None
cnot(self: uniqc_cpp.StatevectorSimulator, controller: SupportsInt | SupportsIndex, target: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
cswap(self: uniqc_cpp.StatevectorSimulator, controller: SupportsInt | SupportsIndex, target1: SupportsInt | SupportsIndex, target2: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
cz(self: uniqc_cpp.StatevectorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
depolarizing(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, p: SupportsFloat | SupportsIndex) → None
get_prob(*args, **kwargs)

Overloaded function.

  1. get_prob(self: uniqc_cpp.StatevectorSimulator, qn: typing.SupportsInt | typing.SupportsIndex, qstate: typing.SupportsInt | typing.SupportsIndex) -> float

  2. get_prob(self: uniqc_cpp.StatevectorSimulator, measure_map: collections.abc.Mapping[typing.SupportsInt | typing.SupportsIndex, typing.SupportsInt | typing.SupportsIndex]) -> float

hadamard(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
init_n_qubit(self: uniqc_cpp.StatevectorSimulator, arg0: SupportsInt | SupportsIndex) → None
iswap(self: uniqc_cpp.StatevectorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
kraus1q(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, kraus_ops: collections.abc.Sequence[Annotated[collections.abc.Sequence[complex | SupportsComplex | SupportsFloat | SupportsIndex], 'FixedSize(4)']]) → None
max_qubit_num = 30
measure_qubit(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex) → int
measure_single_shot(*args, **kwargs)

Overloaded function.

  1. measure_single_shot(self: uniqc_cpp.StatevectorSimulator, qubit: typing.SupportsInt | typing.SupportsIndex) -> int

  2. measure_single_shot(self: uniqc_cpp.StatevectorSimulator, qubits: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> int

pauli_error_1q(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, px: SupportsFloat | SupportsIndex, py: SupportsFloat | SupportsIndex, pz: SupportsFloat | SupportsIndex) → None
pauli_error_2q(self: uniqc_cpp.StatevectorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, p: collections.abc.Sequence[SupportsFloat | SupportsIndex]) → None
phase2q(self: uniqc_cpp.StatevectorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, theta1: SupportsFloat | SupportsIndex, theta2: SupportsFloat | SupportsIndex, thetazz: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
phaseflip(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, p: SupportsFloat | SupportsIndex) → None
pmeasure(*args, **kwargs)

Overloaded function.

  1. pmeasure(self: uniqc_cpp.StatevectorSimulator, qn: typing.SupportsInt | typing.SupportsIndex) -> list[float]

  2. pmeasure(self: uniqc_cpp.StatevectorSimulator, measure_qubits: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> list[float]

qram(self: uniqc_cpp.StatevectorSimulator, addr_qubits: collections.abc.Sequence[SupportsInt | SupportsIndex], data_qubits: collections.abc.Sequence[SupportsInt | SupportsIndex], data_array: collections.abc.Sequence[SupportsInt | SupportsIndex], control_qubits: collections.abc.Sequence[SupportsInt | SupportsIndex] = []) → None
reset_qubit(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex) → None
rphi(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, phi: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
rphi180(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, phi: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
rphi90(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, phi: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
rx(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
ry(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
rz(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
s(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
property state
swap(self: uniqc_cpp.StatevectorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
sx(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
t(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
toffoli(self: uniqc_cpp.StatevectorSimulator, controller1: SupportsInt | SupportsIndex, controller2: SupportsInt | SupportsIndex, target: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
property total_qubit
twoqubit_depolarizing(self: uniqc_cpp.StatevectorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, p: SupportsFloat | SupportsIndex) → None
u1(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
u2(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, phi: SupportsFloat | SupportsIndex, lamda: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
u22(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, unitary: Annotated[collections.abc.Sequence[complex | SupportsComplex | SupportsFloat | SupportsIndex], 'FixedSize(4)'], global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
u3(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, phi: SupportsFloat | SupportsIndex, lamda: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
uu15(self: uniqc_cpp.StatevectorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, parameters: collections.abc.Sequence[SupportsFloat | SupportsIndex], global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
x(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
xx(self: uniqc_cpp.StatevectorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
xy(self: uniqc_cpp.StatevectorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
y(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
yy(self: uniqc_cpp.StatevectorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
z(self: uniqc_cpp.StatevectorSimulator, qn: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
zz(self: uniqc_cpp.StatevectorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None

DensityOperatorSimulator

class uniqc_cpp.DensityOperatorSimulator

基类:pybind11_object

__init__(self: uniqc_cpp.DensityOperatorSimulator) → None
amplitude_damping(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, gamma: SupportsFloat | SupportsIndex) → None
bitflip(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, p: SupportsFloat | SupportsIndex) → None
cnot(self: uniqc_cpp.DensityOperatorSimulator, controller: SupportsInt | SupportsIndex, target: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
cswap(self: uniqc_cpp.DensityOperatorSimulator, controller: SupportsInt | SupportsIndex, target1: SupportsInt | SupportsIndex, target2: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
cz(self: uniqc_cpp.DensityOperatorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
depolarizing(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, p: SupportsFloat | SupportsIndex) → None
get_prob(*args, **kwargs)

Overloaded function.

  1. get_prob(self: uniqc_cpp.DensityOperatorSimulator, arg0: typing.SupportsInt | typing.SupportsIndex, arg1: typing.SupportsInt | typing.SupportsIndex) -> float

  2. get_prob(self: uniqc_cpp.DensityOperatorSimulator, arg0: collections.abc.Mapping[typing.SupportsInt | typing.SupportsIndex, typing.SupportsInt | typing.SupportsIndex]) -> float

hadamard(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
init_n_qubit(self: uniqc_cpp.DensityOperatorSimulator, arg0: SupportsInt | SupportsIndex) → None
iswap(self: uniqc_cpp.DensityOperatorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
kraus1q(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, kraus_ops: collections.abc.Sequence[Annotated[collections.abc.Sequence[complex | SupportsComplex | SupportsFloat | SupportsIndex], 'FixedSize(4)']]) → None
max_qubit_num = 10
measure_qubit(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex) → int
pauli_error_1q(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, px: SupportsFloat | SupportsIndex, py: SupportsFloat | SupportsIndex, pz: SupportsFloat | SupportsIndex) → None
pauli_error_2q(self: uniqc_cpp.DensityOperatorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, p: collections.abc.Sequence[SupportsFloat | SupportsIndex]) → None
phase2q(self: uniqc_cpp.DensityOperatorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, theta1: SupportsFloat | SupportsIndex, theta2: SupportsFloat | SupportsIndex, thetazz: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
phaseflip(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, p: SupportsFloat | SupportsIndex) → None
pmeasure(*args, **kwargs)

Overloaded function.

  1. pmeasure(self: uniqc_cpp.DensityOperatorSimulator, arg0: typing.SupportsInt | typing.SupportsIndex) -> list[float]

  2. pmeasure(self: uniqc_cpp.DensityOperatorSimulator, arg0: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> list[float]

qram(self: uniqc_cpp.DensityOperatorSimulator, addr_qubits: collections.abc.Sequence[SupportsInt | SupportsIndex], data_qubits: collections.abc.Sequence[SupportsInt | SupportsIndex], data_array: collections.abc.Sequence[SupportsInt | SupportsIndex], control_qubits: collections.abc.Sequence[SupportsInt | SupportsIndex] = []) → None
reset_qubit(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex) → None
rphi(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, phi: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
rphi180(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, phi: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
rphi90(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, phi: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
rx(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
ry(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
rz(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
s(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
property state
stateprob(self: uniqc_cpp.DensityOperatorSimulator) → list[float]
swap(self: uniqc_cpp.DensityOperatorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
sx(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
t(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
toffoli(self: uniqc_cpp.DensityOperatorSimulator, controller1: SupportsInt | SupportsIndex, controller2: SupportsInt | SupportsIndex, target: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
property total_qubit
twoqubit_depolarizing(self: uniqc_cpp.DensityOperatorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, p: SupportsFloat | SupportsIndex) → None
u1(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
u2(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, phi: SupportsFloat | SupportsIndex, lamda: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
u22(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, unitary: Annotated[collections.abc.Sequence[complex | SupportsComplex | SupportsFloat | SupportsIndex], 'FixedSize(4)'], global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
u3(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, phi: SupportsFloat | SupportsIndex, lamda: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
uu15(self: uniqc_cpp.DensityOperatorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, parameters: collections.abc.Sequence[SupportsFloat | SupportsIndex], global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
x(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
xx(self: uniqc_cpp.DensityOperatorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
xy(self: uniqc_cpp.DensityOperatorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
y(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
yy(self: uniqc_cpp.DensityOperatorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
z(self: uniqc_cpp.DensityOperatorSimulator, qn: SupportsInt | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None
zz(self: uniqc_cpp.DensityOperatorSimulator, qn1: SupportsInt | SupportsIndex, qn2: SupportsInt | SupportsIndex, theta: SupportsFloat | SupportsIndex, global_controller: collections.abc.Sequence[SupportsInt | SupportsIndex] = [], dagger: bool = False) → None