qleap.QState¶
- class qleap.QState(length: int)¶
QState is a class that represents a multiple qubit quantum state in the QLeap framework.
- __init__(length: int)¶
Creates a QState instance with the specified number of qubits.
This constructor allocates qubits for this QState instance using the private allocate method in the Circuit class.
- Parameters:
length (int) – The number of qubits in this quantum state.
Methods
__init__(length)Creates a QState instance with the specified number of qubits.
get_results()Gets the results of measuring this QState instance.