qiskit.chemistry.components.initial_states.VSCF
class VSCF(basis)
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
bitstr | Getter 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’.