Loading the feature vector
Here we introduce a novel loading procedure available in Haiqu SDK -Isometry Encoding — the process of embedding a classical feature vector via parametrization of the Hilbert subspace of controllable complexity. Each classical feature corresponds to a degree of freedom in these subspaces and independently affects the quantum state, which is produced. The latter is then synthesized into compact, linear in depth, circuits.
Unlike Vector Loading, introduced before, data is loaded as is without any normalization needed. The user can control the complexity of the states, in which data is loaded with setting the feature density parameter or desired amount of qubits (in this case the smalles suitable density is chosen automatically). With only product states are considered, and the Isometry Encoding naturally matches the well-known angular encoding. Therefore some existing techniques can be seen as a special case of the Isometry Encoding. Generally, the amount of degrees of freedom, which the encoding provides, scales as , giving the user an ability to encode more features into current hardware.
The Haiqu SDK allows you to prepare an encoding of real feature vector by calling haiqu.isometry_encoding(...).
IsometryEncodingTutorial.ipynb, which covers the basics of the method, encoding properties and gives a QML application example.
Isometry Encoding specifications
| Parameter | Details |
|---|---|
| Number of qubits | Up to 1000 qubits |
| Input data | 1D vector |
| Data type | Real values |
| Data size | Up to ~1M features in the vector |
| Density | From 1 to 8 |
| Runtime | 1-30 seconds |
| Runtime scaling | Linear scaling with number of qubits |
| Circuit size (gates count) | O(n), n = number of qubits |
| Circuit depth | O(n/2), n = number of qubits |
| Circuit connectivity | Linear |
| Other circuit properties | - No mid-circuit measurements - Only CNOT and single-qubit rotation gates - No ancilla qubits - No post-selection required in state preparation |
| Returned metrics | Quantum state fidelity is returned for the ideal state prepared by the circuit |