About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
CircuitState
class CircuitState
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
Type: Circuit | None
The left-hand side circuit in form of a tensor network.
rhs
Type: Circuit | None
The right-hand side circuit in form of a tensor network.
Methods
overlap
overlap(initial_state)
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
Was this page helpful?
Report a bug or request content on GitHub.