VectorStateFn.num_qubits¶
- property VectorStateFn.num_qubits: int¶
The number of qubits over which the Operator is defined. If
op.num_qubits == 5
, thenop.eval('1' * 5)
will be valid, butop.eval('11')
will not.- Return type
int
- Returns
The number of qubits accepted by the Operator’s underlying function.