Skip to main content
IBM Quantum Platform
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

VSCF

class VSCF(basis)

GitHub

Bases: qiskit.aqua.components.initial_states.initial_state.InitialState

Initial state for vibrational modes.

Creates an occupation number vector as defined in Ollitrault Pauline J., Chemical science 11 (2020): 6842-6855. e.g. for 2 modes with 4 modals per mode it creates: |1000 1000>

Parameters

basis (List[int]) – Is a list defining the number of modals per mode. E.g. for a 3 modes system with 4 modals per mode basis = [4,4,4]


Methods

construct_circuit

VSCF.construct_circuit(mode='circuit', register=None)

Construct the statevector of desired initial state.

Parameters

  • mode (string) – vector or circuit. The vector mode produces the vector. While the circuit constructs the quantum circuit corresponding that vector.
  • register (QuantumRegister) – register for circuit construction.

Returns

statevector.

Return type

QuantumCircuit or numpy.ndarray

Raises

ValueError – when mode is not ‘vector’ or ‘circuit’.


Attributes

bitstr

Getter of the bit string represented the statevector.

Was this page helpful?
Report a bug or request content on GitHub.