Documentation ¶
Overview ¶
Package q is a generated protocol buffer package.
It is generated from these files:
q.proto
It has these top-level messages:
Complex128 Vector Matrix Qubit Q None QRequest ApplyRequest ControlledRequest QResponse
Index ¶
- func RegisterQsimServer(s *grpc.Server, srv QsimServer)
- type ApplyRequest
- type Complex128
- type ControlledRequest
- func (*ControlledRequest) Descriptor() ([]byte, []int)
- func (m *ControlledRequest) GetControl() []*Q
- func (m *ControlledRequest) GetK() int64
- func (m *ControlledRequest) GetTarget() *Q
- func (*ControlledRequest) ProtoMessage()
- func (m *ControlledRequest) Reset()
- func (m *ControlledRequest) String() string
- type Matrix
- type None
- type Q
- type QRequest
- type QResponse
- type QsimClient
- type QsimServer
- type Qubit
- type Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterQsimServer ¶
func RegisterQsimServer(s *grpc.Server, srv QsimServer)
Types ¶
type ApplyRequest ¶
type ApplyRequest struct { M *Matrix `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"` Q []*Q `protobuf:"bytes,2,rep,name=q" json:"q,omitempty"` }
func (*ApplyRequest) Descriptor ¶
func (*ApplyRequest) Descriptor() ([]byte, []int)
func (*ApplyRequest) GetM ¶
func (m *ApplyRequest) GetM() *Matrix
func (*ApplyRequest) GetQ ¶
func (m *ApplyRequest) GetQ() []*Q
func (*ApplyRequest) ProtoMessage ¶
func (*ApplyRequest) ProtoMessage()
func (*ApplyRequest) Reset ¶
func (m *ApplyRequest) Reset()
func (*ApplyRequest) String ¶
func (m *ApplyRequest) String() string
type Complex128 ¶
type Complex128 struct { Absolute float64 `protobuf:"fixed64,1,opt,name=absolute" json:"absolute,omitempty"` Theta float64 `protobuf:"fixed64,2,opt,name=theta" json:"theta,omitempty"` }
func (*Complex128) Descriptor ¶
func (*Complex128) Descriptor() ([]byte, []int)
func (*Complex128) GetAbsolute ¶
func (m *Complex128) GetAbsolute() float64
func (*Complex128) GetTheta ¶
func (m *Complex128) GetTheta() float64
func (*Complex128) ProtoMessage ¶
func (*Complex128) ProtoMessage()
func (*Complex128) Reset ¶
func (m *Complex128) Reset()
func (*Complex128) String ¶
func (m *Complex128) String() string
type ControlledRequest ¶
type ControlledRequest struct { Control []*Q `protobuf:"bytes,1,rep,name=control" json:"control,omitempty"` Target *Q `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"` K int64 `protobuf:"varint,3,opt,name=k" json:"k,omitempty"` }
func (*ControlledRequest) Descriptor ¶
func (*ControlledRequest) Descriptor() ([]byte, []int)
func (*ControlledRequest) GetControl ¶
func (m *ControlledRequest) GetControl() []*Q
func (*ControlledRequest) GetK ¶
func (m *ControlledRequest) GetK() int64
func (*ControlledRequest) GetTarget ¶
func (m *ControlledRequest) GetTarget() *Q
func (*ControlledRequest) ProtoMessage ¶
func (*ControlledRequest) ProtoMessage()
func (*ControlledRequest) Reset ¶
func (m *ControlledRequest) Reset()
func (*ControlledRequest) String ¶
func (m *ControlledRequest) String() string
type Matrix ¶
type Matrix struct {
Vectors []*Vector `protobuf:"bytes,1,rep,name=vectors" json:"vectors,omitempty"`
}
func (*Matrix) Descriptor ¶
func (*Matrix) GetVectors ¶
func (*Matrix) ProtoMessage ¶
func (*Matrix) ProtoMessage()
type None ¶
type None struct { }
func (*None) Descriptor ¶
func (*None) ProtoMessage ¶
func (*None) ProtoMessage()
type Q ¶
type Q struct {
Qubit *Qubit `protobuf:"bytes,1,opt,name=qubit" json:"qubit,omitempty"`
}
func (*Q) Descriptor ¶
func (*Q) ProtoMessage ¶
func (*Q) ProtoMessage()
type QRequest ¶
type QRequest struct {
Q []*Q `protobuf:"bytes,1,rep,name=q" json:"q,omitempty"`
}
func (*QRequest) Descriptor ¶
func (*QRequest) ProtoMessage ¶
func (*QRequest) ProtoMessage()
type QResponse ¶
type QResponse struct {
Q *Q `protobuf:"bytes,1,opt,name=q" json:"q,omitempty"`
}
func (*QResponse) Descriptor ¶
func (*QResponse) ProtoMessage ¶
func (*QResponse) ProtoMessage()
type QsimClient ¶
type QsimClient interface { H(ctx context.Context, in *QRequest, opts ...grpc.CallOption) (*QResponse, error) X(ctx context.Context, in *QRequest, opts ...grpc.CallOption) (*QResponse, error) Y(ctx context.Context, in *QRequest, opts ...grpc.CallOption) (*QResponse, error) Z(ctx context.Context, in *QRequest, opts ...grpc.CallOption) (*QResponse, error) S(ctx context.Context, in *QRequest, opts ...grpc.CallOption) (*QResponse, error) T(ctx context.Context, in *QRequest, opts ...grpc.CallOption) (*QResponse, error) Apply(ctx context.Context, in *ApplyRequest, opts ...grpc.CallOption) (*QResponse, error) ControlledR(ctx context.Context, in *ControlledRequest, opts ...grpc.CallOption) (*QResponse, error) ControlledZ(ctx context.Context, in *ControlledRequest, opts ...grpc.CallOption) (*QResponse, error) ControlledNOT(ctx context.Context, in *ControlledRequest, opts ...grpc.CallOption) (*QResponse, error) QFT(ctx context.Context, in *None, opts ...grpc.CallOption) (*QResponse, error) InverseQFT(ctx context.Context, in *None, opts ...grpc.CallOption) (*QResponse, error) }
func NewQsimClient ¶
func NewQsimClient(cc *grpc.ClientConn) QsimClient
type QsimServer ¶
type QsimServer interface { H(context.Context, *QRequest) (*QResponse, error) X(context.Context, *QRequest) (*QResponse, error) Y(context.Context, *QRequest) (*QResponse, error) Z(context.Context, *QRequest) (*QResponse, error) S(context.Context, *QRequest) (*QResponse, error) T(context.Context, *QRequest) (*QResponse, error) Apply(context.Context, *ApplyRequest) (*QResponse, error) ControlledR(context.Context, *ControlledRequest) (*QResponse, error) ControlledZ(context.Context, *ControlledRequest) (*QResponse, error) ControlledNOT(context.Context, *ControlledRequest) (*QResponse, error) QFT(context.Context, *None) (*QResponse, error) InverseQFT(context.Context, *None) (*QResponse, error) }
type Qubit ¶
type Qubit struct {
Vector *Vector `protobuf:"bytes,1,opt,name=vector" json:"vector,omitempty"`
}
func (*Qubit) Descriptor ¶
func (*Qubit) ProtoMessage ¶
func (*Qubit) ProtoMessage()
type Vector ¶
type Vector struct {
Vector []*Complex128 `protobuf:"bytes,1,rep,name=vector" json:"vector,omitempty"`
}
func (*Vector) Descriptor ¶
func (*Vector) GetVector ¶
func (m *Vector) GetVector() []*Complex128
func (*Vector) ProtoMessage ¶
func (*Vector) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.