qutip_qip.qubits

Generating qubit states.

Functions

qubit_states([N, states])

Function to define initial state of the qubits.

qutip_qip.qubits.qubit_states(N=1, states=[0])[source]

Function to define initial state of the qubits.

Parameters
NInteger

Number of qubits in the register.

statesList

Initial state of each qubit.

Returns
qstatesQobj

List of qubits.