qib.operator.gates.TimeEvolutionGate¶
- class qib.operator.gates.TimeEvolutionGate(h: AbstractOperator, t: float)[source]¶
Bases:
GateQuantum time evolution gate, i.e., matrix exponential, given a Hamiltonian h: \(e^{-i h t}\).
Methods
Generate the sparse matrix representation of the gate as element of a quantum circuit.
Generate the matrix representation of the time evolution gate.
Generate a Qobj OpenQASM representation of the gate.
Generate a tensor network representation of the gate.
Return the list of fields hosting the quantum particles which the gate acts on.
Return the inverse operator.
Whether the gate is Hermitian.
A quantum gate is unitary by definition.
Return the list of quantum particles the gate acts on.
Attributes
The number of "wires" (or quantum particles) this gate acts on.
- as_circuit_matrix(fields: Sequence[Field])[source]¶
Generate the sparse matrix representation of the gate as element of a quantum circuit.
- property num_wires¶
The number of “wires” (or quantum particles) this gate acts on.