qiskit.opflow.state_fns.CircuitStateFn.from_dict¶ static CircuitStateFn.from_dict(density_dict)[source]¶ Construct the CircuitStateFn from a dict mapping strings to probability densities. Parameters density_dict (dict) – The dict representing the desired state. Return type CircuitStateFn Returns The CircuitStateFn created from the dict.