CircuitState

class CircuitState[source]

Bases: State

An MPO-like representation of a time-evolution state based on quantum circuits.

This time-evolution state can be evolved on its left- and right-hand side as required by the DynamicMPF algorithm.

Initialize a CircuitState instance.

Attributes

lhs: Circuit | None

The left-hand side circuit in form of a tensor network.

rhs: Circuit | None

The right-hand side circuit in form of a tensor network.

Methods

overlap(initial_state)[source]

Compute the overlap of this state with the provided initial state.

Warning

This implementation only supports instances of qiskit.circuit.QuantumCircuit for initial_state.

Parameters:

initial_state (Any) – the initial state with which to compute the overlap.

Raises:

TypeError – if the provided initial state has an incompatible type.

Returns:

The overlap of this state with the provided one.

Return type:

complex