quri_parts.circuit.gate_names module#
- is_single_qubit_gate_name(gate_name)#
- Parameters:
gate_name (str) –
- Return type:
typing_extensions.TypeGuard[circuit.gate_names.SingleQubitGateNameType]
- is_two_qubit_gate_name(gate_name)#
- Parameters:
gate_name (str) –
- Return type:
typing_extensions.TypeGuard[circuit.gate_names.TwoQubitGateNameType]
- is_three_qubit_gate_name(gate_name)#
- Parameters:
gate_name (str) –
- Return type:
typing_extensions.TypeGuard[circuit.gate_names.ThreeQubitGateNameType]
- is_multi_qubit_gate_name(gate_name)#
- Parameters:
gate_name (str) –
- Return type:
typing_extensions.TypeGuard[circuit.gate_names.MultiQubitGateNameType]
- NonParametricGateNameType#
A set of strings representing gate names.
alias of
Union
[Literal
[‘Identity’, ‘X’, ‘Y’, ‘Z’, ‘H’, ‘S’, ‘Sdag’, ‘SqrtX’, ‘SqrtXdag’, ‘SqrtY’, ‘SqrtYdag’, ‘T’, ‘Tdag’, ‘RX’, ‘RY’, ‘RZ’, ‘U1’, ‘U2’, ‘U3’],Literal
[‘CNOT’, ‘CZ’, ‘SWAP’],Literal
[‘Pauli’, ‘PauliRotation’]]
- is_unitary_matrix_gate_name(gate_name)#
- Parameters:
gate_name (str) –
- Return type:
typing_extensions.TypeGuard[circuit.gate_names.UnitaryMatrixGateNameType]
- is_parametric_gate_name(gate_name)#
- Parameters:
gate_name (str) –
- Return type:
typing_extensions.TypeGuard[circuit.gate_names.ParametricGateNameType]
- PauliNameType#
Valid Pauli gate names.
alias of
Literal
[‘X’, ‘Y’, ‘Z’, ‘Pauli’]
- is_pauli_name(gate_name)#
- Parameters:
gate_name (str) –
- Return type:
typing_extensions.TypeGuard[circuit.gate_names.PauliNameType]
- GateNameType#
Valid gate names
alias of
Literal
[‘Identity’, ‘X’, ‘Y’, ‘Z’, ‘H’, ‘S’, ‘Sdag’, ‘SqrtX’, ‘SqrtXdag’, ‘SqrtY’, ‘SqrtYdag’, ‘T’, ‘Tdag’, ‘RX’, ‘RY’, ‘RZ’, ‘U1’, ‘U2’, ‘U3’, ‘CNOT’, ‘CZ’, ‘SWAP’, ‘TOFFOLI’, ‘Pauli’, ‘PauliRotation’, ‘UnitaryMatrix’, ‘ParametricRX’, ‘ParametricRY’, ‘ParametricRZ’, ‘ParametricPauliRotation’]
- is_gate_name(gate_name)#
- Parameters:
gate_name (str) –
- Return type:
typing_extensions.TypeGuard[circuit.gate_names.GateNameType]