Skip to main contentIBM Quantum Documentation
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.

qiskit.chemistry.components.initial_states.VSCF

class VSCF(basis)

GitHub

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]

__init__

__init__(basis)

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

__init__(basis)type basisList[int]
construct_circuit([mode, register])Construct the circuit of desired initial state.

Attributes

bitstrGetter of the bit string represented the statevector.

bitstr

Getter of the bit string represented the statevector.

Return type

ndarray

Returns

numpy.ndarray containing the bitstring representation

construct_circuit

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

Construct the circuit of desired initial state.

Parameters

  • mode (str) – 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’.

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