Create a schematic for Ternary logic circuit. 

libSymbols:
- Device:R
- Simulation_SPICE:VDC
- TernaryLogic:inverter
- TernaryLogic:nany
- TernaryLogic:nconsensus
- power:GND
- power:VDD
- power:VSS
schematicSymbols:
- libraryNickname: power
  entryName: GND
  position:
    x: 46.99
    y: 78.74
    angle: 0
  properties:
  - key: Reference
    value: '#PWR02'
    position:
      x: 46.99
      y: 85.09
      angle: 0
  - key: Value
    value: GND
    position:
      x: 46.99
      y: 83.1834
      angle: 0
- libraryNickname: power
  entryName: VSS
  position:
    x: 212.09
    y: 95.25
    angle: 180
  properties:
  - key: Reference
    value: '#PWR012'
    position:
      x: 212.09
      y: 91.44
      angle: 0
  - key: Value
    value: VSS
    position:
      x: 212.09
      y: 99.6934
      angle: 0
- libraryNickname: power
  entryName: GND
  position:
    x: 66.04
    y: 74.93
    angle: 0
  properties:
  - key: Reference
    value: '#PWR013'
    position:
      x: 66.04
      y: 81.28
      angle: 0
  - key: Value
    value: GND
    position:
      x: 66.04
      y: 79.3734
      angle: 0
- libraryNickname: power
  entryName: VSS
  position:
    x: 53.34
    y: 91.44
    angle: 0
  properties:
  - key: Reference
    value: '#PWR04'
    position:
      x: 53.34
      y: 95.25
      angle: 0
  - key: Value
    value: VSS
    position:
      x: 53.34
      y: 87.8642
      angle: 0
- libraryNickname: power
  entryName: VDD
  position:
    x: 212.09
    y: 80.01
    angle: 0
  properties:
  - key: Reference
    value: '#PWR011'
    position:
      x: 212.09
      y: 83.82
      angle: 0
  - key: Value
    value: VDD
    position:
      x: 212.09
      y: 76.4342
      angle: 0
- libraryNickname: power
  entryName: VSS
  position:
    x: 139.7
    y: 111.76
    angle: 180
  properties:
  - key: Reference
    value: '#PWR06'
    position:
      x: 139.7
      y: 107.95
      angle: 0
  - key: Value
    value: VSS
    position:
      x: 139.7
      y: 116.2034
      angle: 0
- libraryNickname: power
  entryName: VDD
  position:
    x: 139.7
    y: 96.52
    angle: 0
  properties:
  - key: Reference
    value: '#PWR05'
    position:
      x: 139.7
      y: 100.33
      angle: 0
  - key: Value
    value: VDD
    position:
      x: 139.7
      y: 92.9442
      angle: 0
- libraryNickname: TernaryLogic
  entryName: inverter
  position:
    x: 142.24
    y: 104.14
    angle: 0
  properties:
  - key: Reference
    value: A1
    position:
      x: 151.6327
      y: 92.9566
      angle: 0
  - key: Value
    value: inverter
    position:
      x: 151.6327
      y: 95.4935
      angle: 0
- libraryNickname: power
  entryName: VDD
  position:
    x: 166.37
    y: 93.98
    angle: 0
  properties:
  - key: Reference
    value: '#PWR09'
    position:
      x: 166.37
      y: 97.79
      angle: 0
  - key: Value
    value: VDD
    position:
      x: 166.37
      y: 90.4042
      angle: 0
- libraryNickname: TernaryLogic
  entryName: nany
  position:
    x: 213.36
    y: 87.63
    angle: 0
  properties:
  - key: Reference
    value: A4
    position:
      x: 220.2792
      y: 76.4466
      angle: 0
  - key: Value
    value: nany
    position:
      x: 220.2792
      y: 78.9835
      angle: 0
- libraryNickname: power
  entryName: VDD
  position:
    x: 166.37
    y: 66.04
    angle: 0
  properties:
  - key: Reference
    value: '#PWR07'
    position:
      x: 166.37
      y: 69.85
      angle: 0
  - key: Value
    value: VDD
    position:
      x: 166.37
      y: 62.4642
      angle: 0
- libraryNickname: Simulation_SPICE
  entryName: VDC
  position:
    x: 53.34
    y: 96.52
    angle: 0
  properties:
  - key: Reference
    value: V4
    position:
      x: 56.642
      y: 94.2271
      angle: 0
  - key: Value
    value: VDC
    position:
      x: 56.642
      y: 96.764
      angle: 0
- libraryNickname: Device
  entryName: R
  position:
    x: 66.04
    y: 71.12
    angle: 0
  properties:
  - key: Reference
    value: R1
    position:
      x: 67.818
      y: 70.2853
      angle: 0
  - key: Value
    value: 470k
    position:
      x: 67.818
      y: 72.8222
      angle: 0
- libraryNickname: power
  entryName: GND
  position:
    x: 46.99
    y: 104.14
    angle: 0
  properties:
  - key: Reference
    value: '#PWR03'
    position:
      x: 46.99
      y: 110.49
      angle: 0
  - key: Value
    value: GND
    position:
      x: 46.99
      y: 108.5834
      angle: 0
- libraryNickname: Simulation_SPICE
  entryName: VDC
  position:
    x: 53.34
    y: 71.12
    angle: 0
  properties:
  - key: Reference
    value: V2
    position:
      x: 56.642
      y: 68.8271
      angle: 0
  - key: Value
    value: VDC
    position:
      x: 56.642
      y: 71.364
      angle: 0
- libraryNickname: power
  entryName: VDD
  position:
    x: 40.64
    y: 91.44
    angle: 0
  properties:
  - key: Reference
    value: '#PWR01'
    position:
      x: 40.64
      y: 95.25
      angle: 0
  - key: Value
    value: VDD
    position:
      x: 40.64
      y: 87.8642
      angle: 0
- libraryNickname: Simulation_SPICE
  entryName: VDC
  position:
    x: 40.64
    y: 96.52
    angle: 0
  properties:
  - key: Reference
    value: V3
    position:
      x: 43.942
      y: 94.2271
      angle: 0
  - key: Value
    value: VDC
    position:
      x: 43.942
      y: 96.764
      angle: 0
- libraryNickname: TernaryLogic
  entryName: nconsensus
  position:
    x: 167.64
    y: 101.6
    angle: 0
  properties:
  - key: Reference
    value: A3
    position:
      x: 177.9761
      y: 90.4166
      angle: 0
  - key: Value
    value: nconsensus
    position:
      x: 177.9761
      y: 92.9535
      angle: 0
- libraryNickname: power
  entryName: VSS
  position:
    x: 166.37
    y: 109.22
    angle: 180
  properties:
  - key: Reference
    value: '#PWR010'
    position:
      x: 166.37
      y: 105.41
      angle: 0
  - key: Value
    value: VSS
    position:
      x: 166.37
      y: 113.6634
      angle: 0
- libraryNickname: Simulation_SPICE
  entryName: VDC
  position:
    x: 40.64
    y: 71.12
    angle: 0
  properties:
  - key: Reference
    value: V1
    position:
      x: 43.942
      y: 68.8271
      angle: 0
  - key: Value
    value: VDC
    position:
      x: 43.942
      y: 71.364
      angle: 0
- libraryNickname: power
  entryName: VSS
  position:
    x: 166.37
    y: 81.28
    angle: 180
  properties:
  - key: Reference
    value: '#PWR08'
    position:
      x: 166.37
      y: 77.47
      angle: 0
  - key: Value
    value: VSS
    position:
      x: 166.37
      y: 85.7234
      angle: 0
- libraryNickname: TernaryLogic
  entryName: nany
  position:
    x: 167.64
    y: 73.66
    angle: 0
  properties:
  - key: Reference
    value: A2
    position:
      x: 174.5592
      y: 62.4766
      angle: 0
  - key: Value
    value: nany
    position:
      x: 174.5592
      y: 65.0135
      angle: 0
junctions:
- position:
    x: 46.99
    y: 102.87
    angle: 0
- position:
    x: 132.08
    y: 87.63
    angle: 0
- position:
    x: 46.99
    y: 77.47
    angle: 0
- position:
    x: 157.48
    y: 87.63
    angle: 0
noConnects: []
busEntries: []
graphicalItems:
- type: wire
  points:
  - x: 40.64
    y: 76.2
  - x: 40.64
    y: 77.47
- type: wire
  points:
  - x: 191.77
    y: 90.17
  - x: 191.77
    y: 101.6
- type: wire
  points:
  - x: 46.99
    y: 102.87
  - x: 46.99
    y: 104.14
- type: wire
  points:
  - x: 40.64
    y: 77.47
  - x: 46.99
    y: 77.47
- type: wire
  points:
  - x: 154.94
    y: 87.63
  - x: 157.48
    y: 87.63
- type: wire
  points:
  - x: 160.02
    y: 99.06
  - x: 157.48
    y: 99.06
- type: wire
  points:
  - x: 160.02
    y: 76.2
  - x: 157.48
    y: 76.2
- type: wire
  points:
  - x: 129.54
    y: 87.63
  - x: 132.08
    y: 87.63
- type: wire
  points:
  - x: 157.48
    y: 76.2
  - x: 157.48
    y: 87.63
- type: wire
  points:
  - x: 53.34
    y: 77.47
  - x: 53.34
    y: 76.2
- type: wire
  points:
  - x: 160.02
    y: 71.12
  - x: 132.08
    y: 71.12
- type: wire
  points:
  - x: 191.77
    y: 85.09
  - x: 205.74
    y: 85.09
- type: wire
  points:
  - x: 132.08
    y: 71.12
  - x: 132.08
    y: 87.63
- type: wire
  points:
  - x: 151.13
    y: 104.14
  - x: 160.02
    y: 104.14
- type: wire
  points:
  - x: 46.99
    y: 77.47
  - x: 53.34
    y: 77.47
- type: wire
  points:
  - x: 46.99
    y: 77.47
  - x: 46.99
    y: 78.74
- type: wire
  points:
  - x: 40.64
    y: 101.6
  - x: 40.64
    y: 102.87
- type: wire
  points:
  - x: 191.77
    y: 101.6
  - x: 175.26
    y: 101.6
- type: wire
  points:
  - x: 220.98
    y: 87.63
  - x: 223.52
    y: 87.63
- type: wire
  points:
  - x: 132.08
    y: 87.63
  - x: 132.08
    y: 104.14
- type: wire
  points:
  - x: 53.34
    y: 102.87
  - x: 53.34
    y: 101.6
- type: wire
  points:
  - x: 132.08
    y: 104.14
  - x: 134.62
    y: 104.14
- type: wire
  points:
  - x: 205.74
    y: 90.17
  - x: 191.77
    y: 90.17
- type: wire
  points:
  - x: 175.26
    y: 73.66
  - x: 191.77
    y: 73.66
- type: wire
  points:
  - x: 191.77
    y: 73.66
  - x: 191.77
    y: 85.09
- type: wire
  points:
  - x: 157.48
    y: 87.63
  - x: 157.48
    y: 99.06
- type: wire
  points:
  - x: 40.64
    y: 102.87
  - x: 46.99
    y: 102.87
- type: wire
  points:
  - x: 46.99
    y: 102.87
  - x: 53.34
    y: 102.87
globalLabels:
- text: B
  shape: input
  position:
    x: 53.34
    y: 66.04
    angle: 90
- text: A
  shape: input
  position:
    x: 154.94
    y: 87.63
    angle: 180
- text: B
  shape: input
  position:
    x: 129.54
    y: 87.63
    angle: 180
- text: Out
  shape: output
  position:
    x: 223.52
    y: 87.63
    angle: 0
- text: Out
  shape: output
  position:
    x: 66.04
    y: 67.31
    angle: 90
- text: A
  shape: input
  position:
    x: 40.64
    y: 66.04
    angle: 90
sheetInstances:
- instancePath: /
  page: '1'
