Components, quantum

toffoli

Every option, pin and variant of toffoli, as release 1.3.1 of the compiler states them.

Pins

toffoli specimen1 component and 0 connections.U1in1in2in3out1out2out3control1control2target1
toffoli specimen
toffoli with its default options, pins named.

Pin functions

PinSide
in1left
in2left
in3left
out1right
out2right
out3right
control1top
control2top
target1bottom

A wire names a pin as ID.pin. Rotating the part moves the pins with it; their names stay the same.

Options

Options go in square brackets after the colour, as name=value. Any option not listed here is an error.

Options

OptionAcceptsDefault
controlsWhole number from 1 to 32 2
targetsWhole number from 1 to 32 1
orientationOne of 4 values: right,down,left,upright
fitOnly wiresNone

fit and orientation cannot be written together.

Writing one

toffoli:U1 at (120, 124) #blue