quchip.devices.spaces¶
Backend-neutral local Hilbert spaces and their named operators.
Classes
|
Finite integer-charge basis centered on zero charge. |
|
Named local operators supplied as matrices or zero-argument JAX callables. |
|
Finite Fock ladder with standard bosonic and qubit operators. |
Numerical realization of the operators used by one device model. |
|
|
Uniform endpoint-excluded phase grid with nonperiodic finite differences. |
|
Authored basis indices near a cutoff and the corresponding convergence check. |
- class quchip.devices.spaces.TruncationBoundary(indices, description, convergence_hint)[source]¶
Bases:
objectAuthored basis indices near a cutoff and the corresponding convergence check.
- Parameters:
- class quchip.devices.spaces.LocalSpace[source]¶
Bases:
ABCNumerical realization of the operators used by one device model.
- class quchip.devices.spaces.FockSpace(levels)[source]¶
Bases:
LocalSpaceFinite Fock ladder with standard bosonic and qubit operators.
- Parameters:
levels (int) – Hilbert-space dimension, at least 2. The
aladder is truncated atlevels - 1.
- class quchip.devices.spaces.ChargeSpace(num_basis)[source]¶
Bases:
LocalSpaceFinite integer-charge basis centered on zero charge.
- Parameters:
num_basis (int) – Odd basis size, at least 3, with charges from
-(num_basis-1)//2to+(num_basis-1)//2.
- class quchip.devices.spaces.PhaseGridSpace(points, extent)[source]¶
Bases:
LocalSpaceUniform endpoint-excluded phase grid with nonperiodic finite differences.
The centered-difference stencil does not wrap across the grid boundary. Values beyond each endpoint are zero. :param points: Number of endpoint-excluded grid points, at least 3. :type points: int :param extent: Positive half-width of the grid, in dimensionless phase radians. :type extent: float
- class quchip.devices.spaces.CustomSpace(dimension, operators)[source]¶
Bases:
LocalSpaceNamed local operators supplied as matrices or zero-argument JAX callables.
- Parameters: