Skip to content

operations

chalmers_qubit.utils.operations

Functions:

Name Description
project_on_qubit

Project a given quantum object (density matrix or state vector) onto the computational basis of qubits.

project_on_qubit

project_on_qubit(rho: Qobj) -> Qobj

Project a given quantum object (density matrix or state vector) onto the computational basis of qubits.

Parameters:

Name Type Description Default
rho Qobj

The input quantum object, either a density matrix ('oper' type) or a state vector.

required

Returns:

Name Type Description
qubit_state Qobj

The projected quantum object onto the computational basis (0 and 1 states) of qubits.