tsim.core.instructions
instructions¶
tsim.core.instructions
ZX graph representations of quantum gates and instructions.
- GraphRepresentation
- last_row
- last_edge
- add_dummy
- add_lane
- ensure_lane
- x_phase
- z_phase
- t
- t_dag
- r_z
- r_x
- r_y
- u3
- i
- ii
- x
- y
- z
- c_xyz
- c_nxyz
- c_xnyz
- c_xynz
- c_zyx
- c_nzyx
- c_znyx
- c_zynx
- h
- h_xy
- h_nxy
- h_nxz
- h_yz
- h_nyz
- s
- sqrt_x
- sqrt_x_dag
- sqrt_y
- sqrt_y_dag
- sqrt_z
- sqrt_z_dag
- s_dag
- cnot
- cy
- cz
- swap
- cxswap
- czswap
- swapcx
- swapcz
- iswap
- iswap_dag
- sqrt_xx
- sqrt_xx_dag
- sqrt_yy
- sqrt_yy_dag
- sqrt_zz
- sqrt_zz_dag
- xcx
- xcy
- xcz
- ycx
- ycy
- ycz
- pauli_channel_1
- pauli_channel_2
- depolarize1
- depolarize2
- x_error
- y_error
- z_error
- heralded_pauli_channel_1
- heralded_erase
- finalize_correlated_error
- correlated_error
- m
- mpp
- spp
- tpp
- r_pauli
- mpad
- mr
- mrx
- mry
- mx
- my
- mxx
- myy
- mzz
- r
- rx
- ry
- detector
- observable_include
- tick
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
GATE_TABLE | dict[str, tuple[Callable[..., None], int]] | {'I': (i, 1), 'I_ERROR': (i, 1), 'QUBIT_COORDS': (i, 1), 'II': (ii, 2), 'II_ERROR': (ii, 2), 'X': (x, 1), 'Y': (y, 1),… |
View tsim.core.instructions.GraphRepresentation →View tsim.core.instructions.GraphRepresentation.graph →View tsim.core.instructions.GraphRepresentation.rec →View tsim.core.instructions.GraphRepresentation.silent_rec →View tsim.core.instructions.GraphRepresentation.detectors →View tsim.core.instructions.GraphRepresentation.observables_dict →View tsim.core.instructions.GraphRepresentation.first_vertex →View tsim.core.instructions.GraphRepresentation.last_vertex →View tsim.core.instructions.GraphRepresentation.channel_probs →View tsim.core.instructions.GraphRepresentation.correlated_error_probs →View tsim.core.instructions.GraphRepresentation.num_error_bits →View tsim.core.instructions.GraphRepresentation.num_correlated_error_bits →View tsim.core.instructions.GraphRepresentation.track_classical_wires →View tsim.core.instructions.GraphRepresentation.edge_type →View tsim.core.instructions.GraphRepresentation.vertex_type →View tsim.core.instructions.GraphRepresentation.observables →View tsim.core.instructions.last_row →View tsim.core.instructions.last_edge →View tsim.core.instructions.add_dummy →View tsim.core.instructions.add_lane →View tsim.core.instructions.ensure_lane →View tsim.core.instructions.x_phase →View tsim.core.instructions.z_phase →View tsim.core.instructions.t →View tsim.core.instructions.t_dag →View tsim.core.instructions.r_z →View tsim.core.instructions.r_x →View tsim.core.instructions.r_y →View tsim.core.instructions.u3 →View tsim.core.instructions.i →View tsim.core.instructions.ii →View tsim.core.instructions.x →View tsim.core.instructions.y →View tsim.core.instructions.z →View tsim.core.instructions.c_xyz →View tsim.core.instructions.c_nxyz →View tsim.core.instructions.c_xnyz →View tsim.core.instructions.c_xynz →View tsim.core.instructions.c_zyx →View tsim.core.instructions.c_nzyx →View tsim.core.instructions.c_znyx →View tsim.core.instructions.c_zynx →View tsim.core.instructions.h →View tsim.core.instructions.h_xy →View tsim.core.instructions.h_nxy →View tsim.core.instructions.h_nxz →View tsim.core.instructions.h_yz →View tsim.core.instructions.h_nyz →View tsim.core.instructions.s →View tsim.core.instructions.sqrt_x →View tsim.core.instructions.sqrt_x_dag →View tsim.core.instructions.sqrt_y →View tsim.core.instructions.sqrt_y_dag →View tsim.core.instructions.sqrt_z →View tsim.core.instructions.sqrt_z_dag →View tsim.core.instructions.s_dag →View tsim.core.instructions.cnot →View tsim.core.instructions.cy →View tsim.core.instructions.cz →View tsim.core.instructions.swap →View tsim.core.instructions.cxswap →View tsim.core.instructions.czswap →View tsim.core.instructions.swapcx →View tsim.core.instructions.swapcz →View tsim.core.instructions.iswap →View tsim.core.instructions.iswap_dag →View tsim.core.instructions.sqrt_xx →View tsim.core.instructions.sqrt_xx_dag →View tsim.core.instructions.sqrt_yy →View tsim.core.instructions.sqrt_yy_dag →View tsim.core.instructions.sqrt_zz →View tsim.core.instructions.sqrt_zz_dag →View tsim.core.instructions.xcx →View tsim.core.instructions.xcy →View tsim.core.instructions.xcz →View tsim.core.instructions.ycx →View tsim.core.instructions.ycy →View tsim.core.instructions.ycz →View tsim.core.instructions.pauli_channel_1 →View tsim.core.instructions.pauli_channel_2 →View tsim.core.instructions.depolarize1 →View tsim.core.instructions.depolarize2 →View tsim.core.instructions.x_error →View tsim.core.instructions.y_error →View tsim.core.instructions.z_error →View tsim.core.instructions.heralded_pauli_channel_1 →View tsim.core.instructions.heralded_erase →View tsim.core.instructions.finalize_correlated_error →View tsim.core.instructions.correlated_error →View tsim.core.instructions.m →View tsim.core.instructions.mpp →View tsim.core.instructions.spp →View tsim.core.instructions.tpp →View tsim.core.instructions.r_pauli →View tsim.core.instructions.mpad →View tsim.core.instructions.mr →View tsim.core.instructions.mrx →View tsim.core.instructions.mry →View tsim.core.instructions.mx →View tsim.core.instructions.my →View tsim.core.instructions.mxx →View tsim.core.instructions.myy →View tsim.core.instructions.mzz →View tsim.core.instructions.r →View tsim.core.instructions.rx →View tsim.core.instructions.ry →View tsim.core.instructions.detector →View tsim.core.instructions.observable_include →View tsim.core.instructions.tick →