jet.gate.Beamsplitter¶
-
class
Beamsplitter
(theta: float, phi: float, cutoff: int = 2)[source]¶ Bases:
jet.gate.FockGate
Beamsplitter represents a beamsplitter gate. See thewalrus.beamsplitter for more details.
- Parameters
theta (float) – Transmissivity angle of the beamsplitter. The transmissivity is \(t=\cos(\theta)\).
phi (float) – Reflection phase of the beamsplitter.
cutoff (int) – Fock ladder cutoff.
Attributes
Returns the dimension of this gate.
Returns the indices of this gate.
Returns the number of wires this gate acts on.
Returns the parameters of this gate.
-
dimension
¶ Returns the dimension of this gate.
-
indices
¶ Returns the indices of this gate. An index is a label associated with an axis of the tensor representation of a gate; the indices of a tensor determine its connectivity in the context of a tensor network.
-
num_wires
¶ Returns the number of wires this gate acts on.
-
params
¶ Returns the parameters of this gate.
Methods
tensor
([dtype])Returns the tensor representation of this gate.
-
tensor
(dtype: numpy.dtype = <class 'numpy.complex128'>) → Union[jet.bindings.TensorC64, jet.bindings.TensorC128]¶ Returns the tensor representation of this gate.
- Parameters
dtype (np.dtype) – Data type of the tensor.
Downloads