Skip to content

Session7中门电路转化问题 #65

Discussion options

You must be logged in to vote

我的理解是所有的门需要转化为R1CS的形式,即
$$L*R=O$$
所以对于加法门,可以有两种处理方式

  1. 如问题中图片所示,直接1或者1,看变量是左输入还是右输入
  2. 如果上级有乘法门,加法门也可以被吸收(优化)
    对于Tonglai老师上课的例子,gate2和gate3也可以被优化成:
    $$w1*(w4+1)=w6$$

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Demian101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants