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

Making OF compatible with cirq>0.15 #793

Merged
merged 2 commits into from
Jul 25, 2022

Conversation

ncrubin
Copy link
Collaborator

@ncrubin ncrubin commented Jul 25, 2022

With the removal of final_state_vector from the Circuit object
we move the final_state_vector to the simulator.simulate result.

update requirements and CI

pin to cirq 1.0

unpin from 1.0

update ci workflow

bump min version in CI since 3.6 is no longer supported

With the removal of final_state_vector from the Circuit object
we move the final_state_vector to the simulator.simulate result.

update requirements and CI

pin to cirq 1.0

unpin from 1.0

update ci workflow

bump min version in CI since 3.6 is no longer supported
@mpharrigan
Copy link
Collaborator

for anyone reading along: you could also do cirq.final_state_vector(circuit)

# Also check least-supported versions (linux only)
include:
- os: ubuntu-latest
python-version: 3.8
cirq-version: '~=0.12.0'
cirq-version: '~=1.0.0'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the comment in this include block says this is supposed to test the least-supported versions (linux only). Here, you've changed it to check newest version of cirq but with oldest version of python

@ncrubin ncrubin requested a review from mpharrigan July 25, 2022 19:31
Copy link
Collaborator

@mpharrigan mpharrigan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sweeet

@ncrubin ncrubin merged commit a3f352e into quantumlib:master Jul 25, 2022
@ncrubin ncrubin deleted the cirq_15_compat branch July 25, 2022 20:37
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.

2 participants