quri_parts.circuit.transpile.gate_kind_decomposer module#

class quri_parts.circuit.transpile.gate_kind_decomposer.CNOT2CZHTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes CNOT gates into sequences of H and CZ gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.CZ2CNOTHTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes CZ gates into sequences of H and CNOT gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.CZ2RXRYCNOTTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes CZ gates into sequences of RX, RY, and CNOT gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.H2RZSqrtXTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes H gates into sequences of RZ and SqrtX gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.H2RXRYTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes H gates into sequences of RX and RY gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.Identity2RZTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which converts Identity gates into RZ gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.RX2RZSqrtXTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes RX gates into sequences of RZ and SqrtX gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.RY2RZSqrtXTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes RY gates into sequences of RZ and SqrtX gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.S2RZTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes S gates into of gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.Sdag2RZTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes Sdag gates into RZ gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.SqrtX2RXTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which converts SqrtX gates into RX gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.SqrtX2RZHTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes SqrtX gates into sequences of RZ and H gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.SqrtXdag2RXTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which converts SqrtXdag gates into RX gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.SqrtXdag2RZSqrtXTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes SqrtXdag gates into sequences of RZ and SqrtX gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.SqrtY2RYTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which converts SqrtY gates into RY gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.SqrtY2RZSqrtXTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes SqrtY gates into sequences of RZ and SqrtX gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.SqrtYdag2RYTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.SqrtYdag2RZSqrtXTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes SqrtYdag gates into sequences of RZ and SqrtX gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.SWAP2CNOTTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes SWAP gates into sequences of CNOT gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.T2RZTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes T gates into RZ gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.Tdag2RZTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes Tdag gates into RZ gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.TOFFOLI2HTTdagCNOTTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes TOFFOLI gates into sequences of H, T, TDag, and CNOT gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.U1ToRZTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes U1 gates into RZ gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.U2ToRZSqrtXTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes U2 gates into sequences of RZ and SqrtX gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.U2ToRXRZTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes U2 gates into sequences of RX and RZ gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.U3ToRZSqrtXTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes U3 gates into sequences of RZ and SqrtX gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.U3ToRXRZTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes U3 gates into sequences of RX and RZ gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.X2HZTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes X gates into sequences of H and Z gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.X2RXTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which converts X gates into RX gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.X2SqrtXTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes X gates into sequences of SqrtX gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.Y2RZXTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes Y gates into sequences of RZ and T gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.Y2RYTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which converts Y gates into RY gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.Z2RZTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes Z gates into RZ gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.

class quri_parts.circuit.transpile.gate_kind_decomposer.Z2HXTranspiler(*args, **kwargs)#

Bases: GateKindDecomposer

CircuitTranspiler, which decomposes Z gates into sequences of H and X gates.

property target_gate_names: Sequence[str]#

Returns the set of gate names to be decomposed.”.

decompose(gate: QuantumGate) Sequence[QuantumGate]#

Describe the specific decomposition process. Only the target gates satisfying is_target_gate() method are passed.

Parameters:

gate – The gates to be decomposed.