qulacs.gate

Package Contents

Functions

Adaptive

AmplitudeDampingNoise

Create amplitude damping noise

BitFlipNoise

Create bit-flip noise

CNOT

Create CNOT gate

CP

Create completely-positive map

CPTP

Create completely-positive trace preserving map

CZ

Create CZ gate

DenseMatrix

DephasingNoise

Create dephasing noise

DepolarizingNoise

Create depolarizing noise

DiagonalMatrix

Create diagonal matrix gate

ECR

Create ECR gate

FREDKIN

Create FREDKIN gate

FusedSWAP

Create FusedSWAP gate

H

Create Hadamard gate

Identity

Create identity gate

IndependentXZNoise

Create independent XZ noise

Instrument

Create instruments

Measurement

Create measurement gate

NoisyEvolution

Create noisy evolution

NoisyEvolution_fast

Create noisy evolution fast version

P0

Create projection gate to |0> subspace

P1

Create projection gate to |1> subspace

ParametricPauliRotation

Create parametric multi-qubit Pauli rotation gate

ParametricRX

Create parametric Pauli-X rotation gate

ParametricRY

Create parametric Pauli-Y rotation gate

ParametricRZ

Create parametric Pauli-Z rotation gate

Pauli

Create multi-qubit Pauli gate

PauliRotation

Create multi-qubit Pauli rotation

Probabilistic

Create probabilistic gate

ProbabilisticInstrument

Create probabilistic instrument gate

RX

Create Pauli-X rotation gate

RY

Create Pauli-Y rotation gate

RZ

Create Pauli-Z rotation gate

RandomUnitary

ReversibleBoolean

Create reversible boolean gate

RotInvX

Create Pauli-X rotation gate

RotInvY

Create Pauli-Y rotation gate

RotInvZ

Create Pauli-Z rotation gate

RotX

Create Pauli-X rotation gate

RotY

Create Pauli-Y rotation gate

RotZ

Create Pauli-Z rotation gate

S

Create pi/4-phase gate

SWAP

Create SWAP gate

Sdag

Create adjoint of pi/4-phase gate

SparseMatrix

Create sparse matrix gate

StateReflection

Create state reflection gate

T

Create pi/8-phase gate

TOFFOLI

Create TOFFOLI gate

Tdag

Create adjoint of pi/8-phase gate

TwoQubitDepolarizingNoise

Create two-qubit depolarizing noise

U1

Create QASM U1 gate

U2

Create QASM U2 gate

U3

Create QASM U3 gate

X

Create Pauli-X gate

Y

Create Pauli-Y gate

Z

Create Pauli-Z gate

add

from_json

from json string

merge

sqrtX

Create pi/4 Pauli-X rotation gate

sqrtXdag

Create adjoint of pi/4 Pauli-X rotation gate

sqrtY

Create pi/4 Pauli-Y rotation gate

sqrtYdag

Create adjoint of pi/4 Pauli-Y rotation gate

to_matrix_gate

Convert named gate to matrix gate

qulacs.gate.Adaptive(gate: qulacs.QuantumGateBase, condition: Callable[[List[int]], bool]) → qulacs.QuantumGateBase
qulacs.gate.Adaptive(gate: qulacs.QuantumGateBase, condition: Callable[[List[int], int], bool], id: int) → qulacs.QuantumGateBase
qulacs.gate.AmplitudeDampingNoise(index: int, prob: float) → qulacs.QuantumGate_CPTP

Create amplitude damping noise

qulacs.gate.BitFlipNoise(index: int, prob: float) → qulacs.QuantumGate_Probabilistic

Create bit-flip noise

qulacs.gate.CNOT(control: int, target: int) → qulacs.ClsOneControlOneTargetGate

Create CNOT gate

qulacs.gate.CP(kraus_list: List[qulacs.QuantumGateBase], state_normalize: bool, probability_normalize: bool, assign_zero_if_not_matched: bool) → qulacs.QuantumGateBase

Create completely-positive map

qulacs.gate.CPTP(kraus_list: List[qulacs.QuantumGateBase]) → qulacs.QuantumGateBase

Create completely-positive trace preserving map

qulacs.gate.CZ(control: int, target: int) → qulacs.ClsOneControlOneTargetGate

Create CZ gate

qulacs.gate.DenseMatrix(index: int, matrix: numpy.ndarray) → qulacs.QuantumGateMatrix
qulacs.gate.DenseMatrix(index_list: List[int], matrix: numpy.ndarray) → qulacs.QuantumGateMatrix
qulacs.gate.DephasingNoise(index: int, prob: float) → qulacs.QuantumGate_Probabilistic

Create dephasing noise

qulacs.gate.DepolarizingNoise(index: int, prob: float) → qulacs.QuantumGate_Probabilistic

Create depolarizing noise

qulacs.gate.DiagonalMatrix(index_list: List[int], diagonal_element: numpy.ndarray) → qulacs.QuantumGateDiagonalMatrix

Create diagonal matrix gate

qulacs.gate.ECR(target1: int, target2: int) → qulacs.ClsTwoQubitGate

Create ECR gate

qulacs.gate.FREDKIN(control: int, target1: int, target2: int) → qulacs.QuantumGateMatrix

Create FREDKIN gate

qulacs.gate.FusedSWAP(target1: int, target2: int, block_size: int) → ClsNpairQubitGate

Create FusedSWAP gate

qulacs.gate.H(index: int) → qulacs.ClsOneQubitGate

Create Hadamard gate

qulacs.gate.Identity(index: int) → qulacs.ClsOneQubitGate

Create identity gate

qulacs.gate.IndependentXZNoise(index: int, prob: float) → qulacs.QuantumGate_Probabilistic

Create independent XZ noise

qulacs.gate.Instrument(kraus_list: List[qulacs.QuantumGateBase], register: int) → qulacs.QuantumGateBase

Create instruments

qulacs.gate.Measurement(index: int, register: int) → qulacs.QuantumGate_CPTP

Create measurement gate

qulacs.gate.NoisyEvolution(hamiltonian: qulacs.Observable, c_ops: List[qulacs.GeneralQuantumOperator], time: float, dt: float) → qulacs.ClsNoisyEvolution

Create noisy evolution

qulacs.gate.NoisyEvolution_fast(hamiltonian: qulacs.Observable, c_ops: List[qulacs.GeneralQuantumOperator], time: float) → qulacs.ClsNoisyEvolution_fast

Create noisy evolution fast version

qulacs.gate.P0(index: int) → qulacs.ClsOneQubitGate

Create projection gate to |0> subspace

qulacs.gate.P1(index: int) → qulacs.ClsOneQubitGate

Create projection gate to |1> subspace

qulacs.gate.ParametricPauliRotation(index_list: List[int], pauli_ids: List[int], angle: float) → qulacs.QuantumGate_SingleParameter

Create parametric multi-qubit Pauli rotation gate

qulacs.gate.ParametricRX(index: int, angle: float) → qulacs.QuantumGate_SingleParameter

Create parametric Pauli-X rotation gate

qulacs.gate.ParametricRY(index: int, angle: float) → qulacs.QuantumGate_SingleParameter

Create parametric Pauli-Y rotation gate

qulacs.gate.ParametricRZ(index: int, angle: float) → qulacs.QuantumGate_SingleParameter

Create parametric Pauli-Z rotation gate

qulacs.gate.Pauli(index_list: List[int], pauli_ids: List[int]) → qulacs.ClsPauliGate

Create multi-qubit Pauli gate

qulacs.gate.PauliRotation(index_list: List[int], pauli_ids: List[int], angle: float) → qulacs.ClsPauliRotationGate

Create multi-qubit Pauli rotation

qulacs.gate.Probabilistic(prob_list: List[float], gate_list: List[qulacs.QuantumGateBase]) → qulacs.QuantumGateBase

Create probabilistic gate

qulacs.gate.ProbabilisticInstrument(prob_list: List[float], gate_list: List[qulacs.QuantumGateBase], register: int) → qulacs.QuantumGateBase

Create probabilistic instrument gate

qulacs.gate.RX(index: int, angle: float) → qulacs.ClsOneQubitRotationGate

Create Pauli-X rotation gate

qulacs.gate.RY(index: int, angle: float) → qulacs.ClsOneQubitRotationGate

Create Pauli-Y rotation gate

qulacs.gate.RZ(index: int, angle: float) → qulacs.ClsOneQubitRotationGate

Create Pauli-Z rotation gate

qulacs.gate.RandomUnitary(index_list: List[int]) → qulacs.QuantumGateMatrix
qulacs.gate.RandomUnitary(index_list: List[int], seed: int) → qulacs.QuantumGateMatrix
qulacs.gate.ReversibleBoolean(index_list: List[int], func: Callable[[int, int], int]) → qulacs.ClsReversibleBooleanGate

Create reversible boolean gate

qulacs.gate.RotInvX(index: int, angle: float) → qulacs.ClsOneQubitRotationGate

Create Pauli-X rotation gate

qulacs.gate.RotInvY(index: int, angle: float) → qulacs.ClsOneQubitRotationGate

Create Pauli-Y rotation gate

qulacs.gate.RotInvZ(index: int, angle: float) → qulacs.ClsOneQubitRotationGate

Create Pauli-Z rotation gate

qulacs.gate.RotX(index: int, angle: float) → qulacs.ClsOneQubitRotationGate

Create Pauli-X rotation gate

qulacs.gate.RotY(index: int, angle: float) → qulacs.ClsOneQubitRotationGate

Create Pauli-Y rotation gate

qulacs.gate.RotZ(index: int, angle: float) → qulacs.ClsOneQubitRotationGate

Create Pauli-Z rotation gate

qulacs.gate.S(index: int) → qulacs.ClsOneQubitGate

Create pi/4-phase gate

qulacs.gate.SWAP(target1: int, target2: int) → qulacs.ClsTwoQubitGate

Create SWAP gate

qulacs.gate.Sdag(index: int) → qulacs.ClsOneQubitGate

Create adjoint of pi/4-phase gate

qulacs.gate.SparseMatrix(index_list: List[int], matrix: scipy.sparse.csc_matrix[numpy.complex128]) → qulacs.QuantumGateSparseMatrix

Create sparse matrix gate

qulacs.gate.StateReflection(state: qulacs.QuantumState) → qulacs.ClsStateReflectionGate

Create state reflection gate

qulacs.gate.T(index: int) → qulacs.ClsOneQubitGate

Create pi/8-phase gate

qulacs.gate.TOFFOLI(control1: int, control2: int, target: int) → qulacs.QuantumGateMatrix

Create TOFFOLI gate

qulacs.gate.Tdag(index: int) → qulacs.ClsOneQubitGate

Create adjoint of pi/8-phase gate

qulacs.gate.TwoQubitDepolarizingNoise(index1: int, index2: int, prob: float) → qulacs.QuantumGate_Probabilistic

Create two-qubit depolarizing noise

qulacs.gate.U1(index: int, lambda_: float) → qulacs.QuantumGateMatrix

Create QASM U1 gate

qulacs.gate.U2(index: int, phi: float, lambda_: float) → qulacs.QuantumGateMatrix

Create QASM U2 gate

qulacs.gate.U3(index: int, theta: float, phi: float, lambda_: float) → qulacs.QuantumGateMatrix

Create QASM U3 gate

qulacs.gate.X(index: int) → qulacs.ClsOneQubitGate

Create Pauli-X gate

qulacs.gate.Y(index: int) → qulacs.ClsOneQubitGate

Create Pauli-Y gate

qulacs.gate.Z(index: int) → qulacs.ClsOneQubitGate

Create Pauli-Z gate

qulacs.gate.add(gate1: qulacs.QuantumGateBase, gate2: qulacs.QuantumGateBase) → qulacs.QuantumGateMatrix
qulacs.gate.add(gate_list: List[qulacs.QuantumGateBase]) → qulacs.QuantumGateMatrix
qulacs.gate.from_json(arg0: str) → qulacs.QuantumGateBase

from json string

qulacs.gate.merge(gate1: qulacs.QuantumGateBase, gate2: qulacs.QuantumGateBase) → qulacs.QuantumGateMatrix
qulacs.gate.merge(gate_list: List[qulacs.QuantumGateBase]) → qulacs.QuantumGateMatrix
qulacs.gate.sqrtX(index: int) → qulacs.ClsOneQubitGate

Create pi/4 Pauli-X rotation gate

qulacs.gate.sqrtXdag(index: int) → qulacs.ClsOneQubitGate

Create adjoint of pi/4 Pauli-X rotation gate

qulacs.gate.sqrtY(index: int) → qulacs.ClsOneQubitGate

Create pi/4 Pauli-Y rotation gate

qulacs.gate.sqrtYdag(index: int) → qulacs.ClsOneQubitGate

Create adjoint of pi/4 Pauli-Y rotation gate

qulacs.gate.to_matrix_gate(gate: qulacs.QuantumGateBase) → qulacs.QuantumGateMatrix

Convert named gate to matrix gate