Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【PaddlePaddle Hackathon】76 量子电路的量子比特数扩展 #22

Closed
wants to merge 5 commits into from

Conversation

yangguohao
Copy link
Contributor

@yangguohao yangguohao commented Oct 4, 2021

@CLAassistant
Copy link

CLAassistant commented Oct 4, 2021

CLA assistant check
All committers have signed the CLA.

@Quleaf
Copy link
Collaborator

Quleaf commented Oct 25, 2021

考虑到这样一种情况,假设当前的量子电路已经运行过,然后再扩展其量子比特数,并直接执行其它函数,可能会出现报错(由于当前的量子比特数与当前所存储的量子态的维度并不一致)。因此,在函数中,需要检查一下是否有存储量子态,如果有的话,可以将其与一个全0的量子态进行张量积,以避免程序bug。

@yangguohao yangguohao closed this Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants